hlsl.stringtoken.frag 339 B

123456789101112131415161718192021
  1. struct PS_OUTPUT
  2. {
  3. float4 Color : SV_Target0;
  4. };
  5. Texture2D TestTexture <
  6. string TestAttribute1 = "TestAttribute";
  7. string TestAttribute2 = "false";
  8. int TestAttribute3 = 3;
  9. >;
  10. uniform float4 TestUF <string StrValue = "foo";>;
  11. PS_OUTPUT main()
  12. {
  13. PS_OUTPUT psout;
  14. psout.Color = float4(0,0,0,1);
  15. return psout;
  16. }