mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
Update tests.
This commit is contained in:
parent
adebd5ed09
commit
5352615ce1
@ -6,7 +6,7 @@ struct CBO_1
|
||||
float4 d;
|
||||
};
|
||||
|
||||
ConstantBuffer<CBO_1> cbo[2][4] : register(b4);
|
||||
ConstantBuffer<CBO_1> cbo[2][4] : register(b4, space0);
|
||||
cbuffer push
|
||||
{
|
||||
float4 PushMe_a : packoffset(c0);
|
||||
|
@ -2054,12 +2054,8 @@ string CompilerHLSL::to_resource_binding(const SPIRVariable &var)
|
||||
|
||||
// shader model 5.1 supports space
|
||||
if (options.shader_model >= 51)
|
||||
return join(" : register(",
|
||||
space,
|
||||
get_decoration(var.self, DecorationBinding),
|
||||
", space",
|
||||
get_decoration(var.self, DecorationDescriptorSet),
|
||||
")");
|
||||
return join(" : register(", space, get_decoration(var.self, DecorationBinding), ", space",
|
||||
get_decoration(var.self, DecorationDescriptorSet), ")");
|
||||
else
|
||||
return join(" : register(", space, get_decoration(var.self, DecorationBinding), ")");
|
||||
}
|
||||
@ -2071,11 +2067,8 @@ string CompilerHLSL::to_resource_binding_sampler(const SPIRVariable &var)
|
||||
return "";
|
||||
|
||||
if (options.shader_model >= 51)
|
||||
return join(" : register(s",
|
||||
get_decoration(var.self, DecorationBinding),
|
||||
", space",
|
||||
get_decoration(var.self, DecorationDescriptorSet),
|
||||
")");
|
||||
return join(" : register(s", get_decoration(var.self, DecorationBinding), ", space",
|
||||
get_decoration(var.self, DecorationDescriptorSet), ")");
|
||||
else
|
||||
return join(" : register(s", get_decoration(var.self, DecorationBinding), ")");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user