Merge branch 'sm-40-cbuffers' of git://github.com/rossy/SPIRV-Cross

This commit is contained in:
Hans-Kristian Arntzen 2017-09-08 09:13:15 +02:00
commit 5aa5b08dd1

View File

@ -1690,7 +1690,7 @@ string CompilerHLSL::to_resource_binding(const SPIRVariable &var)
space = "u"; // UAV
else if (has_decoration(type.self, DecorationBlock))
{
if (options.shader_model >= 51)
if (options.shader_model >= 40)
space = "b"; // Constant buffers
else
space = "c"; // Constant buffers
@ -1698,7 +1698,7 @@ string CompilerHLSL::to_resource_binding(const SPIRVariable &var)
}
else if (storage == StorageClassPushConstant)
{
if (options.shader_model >= 51)
if (options.shader_model >= 40)
space = "b"; // Constant buffers
else
space = "c"; // Constant buffers