lib_res_match.hlsl 198 B

123456789101112131415
  1. // Make sure same cbuffer decalred in different lib works.
  2. cbuffer A {
  3. float a;
  4. float v;
  5. }
  6. Texture2D tex;
  7. SamplerState samp;
  8. export float GetV() {
  9. return v + tex.Load(uint3(a, v, a)).y;
  10. }