RDPipelineMultisampleState

package
v0.0.0-...-357ca8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

RDPipelineMultisampleState is used to control how multisample or supersample antialiasing is being performed when rendering using RenderingDevice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsRDPipelineMultisampleState() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRDPipelineMultisampleState

func (self *Extension[T]) AsRDPipelineMultisampleState() Instance

func (*Extension[T]) AsRefCounted

func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted

type ID

type ID Object.ID

ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

Instance of the class with convieniently typed arguments and results.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRDPipelineMultisampleState

func (self Instance) AsRDPipelineMultisampleState() Instance

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) EnableAlphaToCoverage

func (self Instance) EnableAlphaToCoverage() bool

If true, alpha to coverage is enabled. This generates a temporary coverage value based on the alpha component of the fragment's first color output. This allows alpha transparency to make use of multisample antialiasing.

func (Instance) EnableAlphaToOne

func (self Instance) EnableAlphaToOne() bool

If true, alpha is forced to either 0.0 or 1.0. This allows hardening the edges of antialiased alpha transparencies. Only relevant if EnableAlphaToCoverage is true.

func (Instance) EnableSampleShading

func (self Instance) EnableSampleShading() bool

If true, enables per-sample shading which replaces MSAA by SSAA. This provides higher quality antialiasing that works with transparent (alpha scissor) edges. This has a very high performance cost. See also MinSampleShading. See the per-sample shading Vulkan documentation for more details.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) MinSampleShading

func (self Instance) MinSampleShading() Float.X

The multiplier of SampleCount that determines how many samples are performed for each fragment. Must be between 0.0 and 1.0 (inclusive). Only effective if EnableSampleShading is true. If MinSampleShading is 1.0, fragment invocation must only read from the coverage index sample. Tile image access must not be used if EnableSampleShading is not 1.0.

func (Instance) SampleCount

func (self Instance) SampleCount() Rendering.TextureSamples

The number of MSAA samples (or SSAA samples if EnableSampleShading is true) to perform. Higher values result in better antialiasing, at the cost of performance.

func (Instance) SampleMasks

func (self Instance) SampleMasks() []int

The sample mask array. See the sample mask Vulkan documentation for more details.

func (Instance) SetEnableAlphaToCoverage

func (self Instance) SetEnableAlphaToCoverage(value bool)

SetEnableAlphaToCoverage sets the property returned by [GetEnableAlphaToCoverage].

func (Instance) SetEnableAlphaToOne

func (self Instance) SetEnableAlphaToOne(value bool)

SetEnableAlphaToOne sets the property returned by [GetEnableAlphaToOne].

func (Instance) SetEnableSampleShading

func (self Instance) SetEnableSampleShading(value bool)

SetEnableSampleShading sets the property returned by [GetEnableSampleShading].

func (Instance) SetMinSampleShading

func (self Instance) SetMinSampleShading(value Float.X)

SetMinSampleShading sets the property returned by [GetMinSampleShading].

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetSampleCount

func (self Instance) SetSampleCount(value Rendering.TextureSamples)

SetSampleCount sets the property returned by [GetSampleCount].

func (Instance) SetSampleMasks

func (self Instance) SetSampleMasks(value []int)

SetSampleMasks sets the property returned by [GetSampleMasks].

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL