csharp
public sealed class IrDepthTextureTypeAn opaque depth image: a shadow map, read only by comparison.
Remarks
Its own IR type rather than a flag on IrTextureType, for the reason IrStorageImageType is: the two are different OpTypeImages — a depth image sets the Depth operand — and different GLSL types, sampler2DShadow against sampler2D. Being a separate class is also what makes every existing is IrTextureType pattern refuse one, so a plain Sample cannot reach a depth image and silently emit the non-comparing instruction.
⚠ There is no sampled type to parameterise. OpTypeImage's sampled type for a depth image is float and nothing else is legal; the value a comparison returns is a single float that the filter has already averaged, not a texel of any format.
Fields and properties (3)
public static readonly IrDepthTextureType Instancepublic override IrTypeKind Kindpublic override string Name
Used by (8)
- DepthTextureTestsVixen.Raven.Tests
- GlslIntrinsicsVixen.Raven
- GlslTypesVixen.Raven
- LibraryIrDecoderVixen.Raven
- LowererVixen.Raven
- ReflectionBuilderVixen.Raven
- SpirvEmitterVixen.Raven
- SpirvTypesVixen.Raven