10 float4 v3 : packoffset(c0);
11 int i3 : packoffset(c1.y);
14 tbuffer tbufName : register(t8) {
15 float4 v4 : packoffset(c1);
16 int i4 : packoffset(c3);
17 float f1 : packoffset(c3.w);
18 float f3 : packoffset(c4.x);
19 float f4 : packoffset(c4.y);
20 float f5 : packoffset(c4.z);
21 float f6 : packoffset(c);
22 float f7 : packoffset(c8);
23 float3x4 m1 : packoffset(c7);
24 row_major float3x4 m2 : packoffset(c11);
25 column_major float3x4 m3 : packoffset(c15);
26 float3x4 m4 : packoffset(c19);
29 float foo() // float looks like identifier, but can't be part of tbuffer
42 id PixelShaderFunction(float4 input : SV_POSITION) : SV_TARGET0 // id looks like id for cbuffer name, but can't be
45 ret.a = v24 + (input + v1 + v2 + v3 + v4) * foo();