hlsl.texturebuffer.frag 245 B

123456789101112131415161718
  1. struct Data {
  2. float4 f;
  3. int4 i;
  4. };
  5. TextureBuffer<Data> TextureBuffer_var : register(t0);
  6. tbuffer tbuf2 {
  7. float4 f2;
  8. int4 i2;
  9. };
  10. float4 main(float4 pos : SV_POSITION) : SV_TARGET
  11. {
  12. return TextureBuffer_var.f + f2;
  13. }