csharp
public readonly record struct RasterizerStateHow triangles are turned into fragments.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (8)
public CullMode CullWhich faces to discard.
public FrontFace FrontFaceWhich winding is front.
public FillMode FillFilled or wireframe.
public bool DepthClampWhether to clamp depth rather than clip it — what a shadow pass wants, so a caster in front of the near plane still casts. Needs HasDepthClamp.
public float DepthBiasA constant added to depth, in depth units.
public float DepthBiasSlopeA factor on the polygon's depth slope.
public static RasterizerState DefaultCull back faces, no bias. What almost every draw wants.
public static RasterizerState TwoSidedCull nothing — a two-sided material, or a full-screen pass.
Methods (1)
Used by (42, showing 40)
- PbrShowcaseGamePbrShowcase
- TriangleGameHelloTriangle
- VirtualGeometryGameVirtualGeometry
- CompositorAssetTestsVixen.Rendering.Tests
- CompositorBuilderVixen.Rendering
- CompositorImageTestsVixen.Graphics.Golden.Tests
- EditorGizmoFacingDeviceTestsVixen.Graphics.Golden.Tests
- FixtureVixen.Graphics.Golden.Tests
- FullScreenRendererVixen.Rendering
- GlDeviceVixen.Graphics.OpenGL
- GlDeviceTestsVixen.Graphics.OpenGL.Tests
- GlPipelineVixen.Graphics.OpenGL
- GlStateCacheVixen.Graphics.OpenGL
- GpuClusterRasterVixen.Rendering
- GraphicsPipelineDescriptionVixen.Graphics
- GrassDrawPassVixen.Rendering.Terrain
- ImpostorCapturePassVixen.Rendering
- IrradianceBounceDeviceTestsVixen.Graphics.Golden.Tests
- IrradianceCaptureDeviceTestsVixen.Graphics.Golden.Tests
- LineRendererVixen.Rendering
- MeshInstanceRendererVixen.Rendering
- MeshRendererVixen.Rendering
- NativeWebGpuTestsVixen.Graphics.WebGPU.Tests
- ParticleSpriteDeviceTestsVixen.Graphics.Golden.Tests
- PipelineDefaultTestsVixen.Graphics.Tests
- PipelineStateImageTestsVixen.Graphics.Golden.Tests
- PipelinesVixen.Graphics.OpenGL.Tests
- RenderStageVixen.Rendering
- ShadowMapRendererTestsVixen.Rendering.Tests
- SurfaceCacheRendererDeviceTestsVixen.Graphics.Golden.Tests
- SurfaceCardCaptureDeviceTestsVixen.Graphics.Golden.Tests
- TerrainRendererVixen.Rendering.Terrain
- UiRendererVixen.Ui.Renderer
- VideoRendererVixen.Video.Rendering
- VirtualGeometryGoldenTestsVixen.Graphics.Golden.Tests
- VulkanDeviceVixen.Graphics.Vulkan
- VulkanDrawTestsVixen.Graphics.Vulkan.Tests
- VulkanPipelineTestsVixen.Graphics.Vulkan.Tests
- WebGpuConversionTestsVixen.Graphics.WebGPU.Tests
- WebGpuConversionsVixen.Graphics.WebGPU