Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InputData2D.hlsl 633B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef INPUT_DATA_2D_INCLUDED
  2. #define INPUT_DATA_2D_INCLUDED
  3. struct InputData2D
  4. {
  5. float2 uv;
  6. half2 lightingUV;
  7. #if defined(DEBUG_DISPLAY)
  8. float3 positionWS;
  9. float4 positionCS;
  10. // Mipmap Streaming Debug
  11. float4 texelSize;
  12. float4 mipInfo;
  13. float4 streamInfo;
  14. uint mipCount;
  15. #endif
  16. };
  17. void InitializeInputData(float2 uv, half2 lightingUV, out InputData2D inputData)
  18. {
  19. inputData = (InputData2D)0;
  20. inputData.uv = uv;
  21. inputData.lightingUV = lightingUV;
  22. }
  23. void InitializeInputData(float2 uv, out InputData2D inputData)
  24. {
  25. InitializeInputData(uv, 0, inputData);
  26. }
  27. #endif