HLSL: Accept layout(...) also as a post-decl. Issue #454.
This commit is contained in:
parent
7735b94403
commit
e3218e270e
4 changed files with 71 additions and 39 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue