Consider different binding space for push constants.

This commit is contained in:
Hans-Kristian Arntzen 2017-06-30 22:16:24 +02:00
parent ecf56cff2b
commit cf09eb3773

View File

@ -1611,7 +1611,12 @@ string CompilerHLSL::to_resource_binding(const SPIRVariable &var)
}
}
else if (storage == StorageClassPushConstant)
space = "c"; // Constant buffers
{
if (options.shader_model >= 51)
space = "b"; // Constant buffers
else
space = "c"; // Constant buffers
}
break;
}