Zebediah Figura (@zfigura) commented about tests/shader_runner.c:
-static void compile_shader(struct shader_runner *runner, const char *source, size_t len, const char *type, HRESULT expect) +const char *shader_type_string(enum shader_type type) +{
- static const char *const shader_types[] =
- {
[SHADER_TYPE_CS] = "cs",
[SHADER_TYPE_PS] = "ps",
[SHADER_TYPE_VS] = "vs",
- };
- assert(type < ARRAY_SIZE(shader_types));
- return shader_types[type];
+}
+static void compile_shader(struct shader_runner *runner, const char *source, size_t len, enum shader_type type,
HRESULT expect)
Why do we need this change? Doesn't sm6 use the same shader type prefixes?