HLSL: Accept layout(...) also as a post-decl. Issue #454.

This commit is contained in:
John Kessenich
2016-09-05 14:37:03 -06:00
parent 7735b94403
commit e3218e270e
4 changed files with 71 additions and 39 deletions

View File

@@ -8,7 +8,11 @@ layout(push_constant) tbuffer tbufName2 {
layout(constant_id=17) const int specConst = 10;
tbuffer tbufName2 : layout(set=4,binding=7) {
layout(offset = 16) float4 v1PostLayout;
};
float4 PixelShaderFunction(float4 input) : COLOR0
{
return input + v1 + v5;
return input + v1 + v5 + v1PostLayout;
}