csharp
public readonly record struct BlendStateHow 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 EnabledWhether to blend at all.
public BlendFactor SourceColourThe source colour factor.
public BlendFactor DestinationColourThe destination colour factor.
public BlendOperation ColourOperationHow the two combine.
public BlendFactor SourceAlphaThe source alpha factor.
public BlendFactor DestinationAlphaThe destination alpha factor.
public BlendOperation AlphaOperationHow the two alphas combine.
public ColourWriteMask WriteMaskWhich channels may be written.
public static BlendState OpaqueOverwrite. The default.
public static BlendState AlphaBlendStraight alpha blending.
public static BlendState PremultipliedAlphaPremultiplied alpha blending.
public static BlendState AdditiveAdditive — particles, glow.
Methods (1)
public BlendState(bool Enabled = false, BlendFactor SourceColour = One, BlendFactor DestinationColour = Zero, BlendOperation ColourOperation = Add, BlendFactor SourceAlpha = One, BlendFactor DestinationAlpha = Zero, BlendOperation AlphaOperation = Add, ColourWriteMask WriteMask = All)How a fragment combines with what is already in the target.
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