xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.texturebuffer.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1
2struct Data {
3    float4  f;
4    int4    i;
5};
6
7TextureBuffer<Data> TextureBuffer_var : register(t0);
8
9tbuffer tbuf2 {
10    float4 f2;
11    int4   i2;
12};
13
14float4 main(float4 pos : SV_POSITION) : SV_TARGET
15{
16    return TextureBuffer_var.f + f2;
17}
18