Merge pull request #277 from KhronosGroup/pr-274
Merge PR #274 with Travis fixes
This commit is contained in:
commit
824d0ad8e7
@ -6,7 +6,7 @@ struct _CBO
|
||||
float4 d;
|
||||
};
|
||||
|
||||
cbuffer CBO : register(c4)
|
||||
cbuffer CBO : register(b4)
|
||||
{
|
||||
_CBO cbo[2][4];
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ struct _UBO
|
||||
int some_value;
|
||||
};
|
||||
|
||||
cbuffer UBO : register(c0)
|
||||
cbuffer UBO : register(b0)
|
||||
{
|
||||
_UBO _42;
|
||||
};
|
||||
|
@ -3,7 +3,7 @@ struct _CBuffer
|
||||
float4 a;
|
||||
};
|
||||
|
||||
cbuffer CBuffer : register(c3)
|
||||
cbuffer CBuffer : register(b3)
|
||||
{
|
||||
_CBuffer cbuf;
|
||||
};
|
||||
|
@ -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