hlsl.structIoFourWay.frag 434 B

12345678910111213141516171819
  1. struct T {
  2. float f : packoffset(c4.y); // artificial, but validates all different treatments: uniform offset
  3. centroid float g; // interpolant input
  4. float d: SV_DepthGreaterEqual; // fragment output
  5. float4 normal; // non-IO
  6. };
  7. T s; // loose uniform
  8. cbuffer buff {
  9. T t : packoffset(c5.z);
  10. };
  11. T main(T t : myInput) : SV_Target0
  12. {
  13. T local;
  14. return local;
  15. }