Vixen
02b45cc4
csharp
public readonly record struct BlendState

How a fragment combines with what is already in the target.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (12)

  • public bool Enabled

    Whether to blend at all.

  • public BlendFactor SourceColour

    The source colour factor.

  • public BlendFactor DestinationColour

    The destination colour factor.

  • public BlendOperation ColourOperation

    How the two combine.

  • public BlendFactor SourceAlpha

    The source alpha factor.

  • public BlendFactor DestinationAlpha

    The destination alpha factor.

  • public BlendOperation AlphaOperation

    How the two alphas combine.

  • public ColourWriteMask WriteMask

    Which channels may be written.

  • public static BlendState Opaque

    Overwrite. The default.

  • public static BlendState AlphaBlend

    Straight alpha blending.

  • public static BlendState PremultipliedAlpha

    Premultiplied alpha blending.

  • public static BlendState Additive

    Additive — particles, glow.

Methods (1)

Used by (40)

  • PbrShowcaseGamePbrShowcase
  • VirtualGeometryGameVirtualGeometry
  • ColourTargetStateVixen.Graphics
  • CompositorAssetTestsVixen.Rendering.Tests
  • CompositorBuilderVixen.Rendering
  • CompositorImageTestsVixen.Graphics.Golden.Tests
  • EditorGizmoFacingDeviceTestsVixen.Graphics.Golden.Tests
  • FixtureVixen.Graphics.Golden.Tests
  • FullScreenRendererVixen.Rendering
  • GlCommandListTestsVixen.Graphics.OpenGL.Tests
  • GlDeviceTestsVixen.Graphics.OpenGL.Tests
  • GlPipelineVixen.Graphics.OpenGL
  • GlReplayTestsVixen.Graphics.OpenGL.Tests
  • GlStateCacheVixen.Graphics.OpenGL
  • GlStateCacheTestsVixen.Graphics.OpenGL.Tests
  • GoldenImageTestsVixen.Graphics.Golden.Tests
  • GpuClusterRasterVixen.Rendering
  • GraphicsCompositorTestsVixen.Rendering.Tests
  • GrassDrawPassVixen.Rendering.Terrain
  • ImpostorCapturePassVixen.Rendering
  • 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
  • ShadowAtlasTileDeviceTestsVixen.Graphics.Golden.Tests
  • SurfaceCacheRendererDeviceTestsVixen.Graphics.Golden.Tests
  • SurfaceCardCaptureDeviceTestsVixen.Graphics.Golden.Tests
  • TerrainRendererVixen.Rendering.Terrain
  • UiRendererVixen.Ui.Renderer
  • VideoRendererVixen.Video.Rendering
  • VulkanDeviceVixen.Graphics.Vulkan
  • WebGpuConversionTestsVixen.Graphics.WebGPU.Tests
  • WebGpuConversionsVixen.Graphics.WebGPU
  • ViewModesVixen.Editor.SceneView