mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-16 00:40:08 +00:00
Merge branch 'sm-40-cbuffers' of git://github.com/rossy/SPIRV-Cross
This commit is contained in:
commit
5aa5b08dd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user