mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 03:16:54 +02:00
shader: trust recompiler stage metadata
This commit is contained in:
@@ -546,21 +546,12 @@ CompileResult Recompile(std::span<const uint32_t> code, const CompileOptions& op
|
|||||||
switch (options.stage) {
|
switch (options.stage) {
|
||||||
case ShaderType::Vertex:
|
case ShaderType::Vertex:
|
||||||
vertex = options.input_info.vertex;
|
vertex = options.input_info.vertex;
|
||||||
if (vertex == nullptr) {
|
|
||||||
EXIT("vertex shader recompilation has no input metadata\n");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case ShaderType::Pixel:
|
case ShaderType::Pixel:
|
||||||
pixel = options.input_info.pixel;
|
pixel = options.input_info.pixel;
|
||||||
if (pixel == nullptr) {
|
|
||||||
EXIT("pixel shader recompilation has no input metadata\n");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case ShaderType::Compute:
|
case ShaderType::Compute:
|
||||||
compute = options.input_info.compute;
|
compute = options.input_info.compute;
|
||||||
if (compute == nullptr) {
|
|
||||||
EXIT("compute shader recompilation has no input metadata\n");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user