1uniform Buffer <float> g_tTexbfs_test : register(t0); 2 3Buffer <float> g_tTexbfs; 4Buffer <int> g_tTexbis; 5Buffer <uint> g_tTexbus; 6 7struct PS_OUTPUT 8{ 9 float4 Color : SV_Target0; 10 float Depth : SV_Depth; 11}; 12 13uniform int c1; 14uniform int2 c2; 15uniform int3 c3; 16uniform int4 c4; 17 18uniform int o1; 19uniform int2 o2; 20uniform int3 o3; 21uniform int4 o4; 22 23PS_OUTPUT main() 24{ 25 PS_OUTPUT psout; 26 27 // Buffer 28 float r00 = g_tTexbfs.Load(c1); 29 int r01 = g_tTexbis.Load(c1); 30 uint r02 = g_tTexbus.Load(c1); 31 32 // TODO: other types that can be put in sampler buffers, like float2x2, and float3. 33 34 psout.Color = 1.0; 35 psout.Depth = 1.0; 36 37 return psout; 38} 39