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.

OccluderDepthPyramidConstants.cs 1.1KB

12345678910111213141516171819202122232425262728
  1. namespace UnityEngine.Rendering
  2. {
  3. [GenerateHLSL(needAccessors = false, generateCBuffer = true)]
  4. internal unsafe struct OccluderDepthPyramidConstants
  5. {
  6. [HLSLArray(OccluderContext.k_MaxSubviewsPerView, typeof(Matrix4x4))]
  7. public fixed float _InvViewProjMatrix[OccluderContext.k_MaxSubviewsPerView * 16];
  8. [HLSLArray(OccluderContext.k_MaxSilhouettePlanes, typeof(Vector4))]
  9. public fixed float _SilhouettePlanes[OccluderContext.k_MaxSilhouettePlanes * 4];
  10. [HLSLArray(OccluderContext.k_MaxSubviewsPerView, typeof(ShaderGenUInt4))]
  11. public fixed uint _SrcOffset[OccluderContext.k_MaxSubviewsPerView * 4];
  12. [HLSLArray(5, typeof(ShaderGenUInt4))]
  13. public fixed uint _MipOffsetAndSize[5 * 4];
  14. public uint _OccluderMipLayoutSizeX;
  15. public uint _OccluderMipLayoutSizeY;
  16. public uint _OccluderDepthPyramidPad0;
  17. public uint _OccluderDepthPyramidPad1;
  18. public uint _SrcSliceIndices; // packed 4 bits each
  19. public uint _DstSubviewIndices; // packed 4 bits each
  20. public uint _MipCount;
  21. public uint _SilhouettePlaneCount;
  22. }
  23. }