Vixen
02b45cc4
csharp
public readonly record struct RasterizerState

How 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 Cull

    Which faces to discard.

  • public FrontFace FrontFace

    Which winding is front.

  • public FillMode Fill

    Filled or wireframe.

  • public bool DepthClamp

    Whether 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 DepthBias

    A constant added to depth, in depth units.

  • public float DepthBiasSlope

    A factor on the polygon's depth slope.

  • public static RasterizerState Default

    Cull back faces, no bias. What almost every draw wants.

  • public static RasterizerState TwoSided

    Cull nothing — a two-sided material, or a full-screen pass.

Methods (1)

  • public RasterizerState(CullMode Cull = Back, FrontFace FrontFace = CounterClockwise, FillMode Fill = Solid, bool DepthClamp = false, float DepthBias = 0, float DepthBiasSlope = 0)

    How triangles are turned into fragments.

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