RDPipelineRasterizationState

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

This object is used by 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
	AsRDPipelineRasterizationState() 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]) AsRDPipelineRasterizationState

func (self *Extension[T]) AsRDPipelineRasterizationState() 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) AsRDPipelineRasterizationState

func (self Instance) AsRDPipelineRasterizationState() Instance

func (Instance) AsRefCounted

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

func (Instance) CullMode

func (self Instance) CullMode() Rendering.PolygonCullMode

The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.

func (Instance) DepthBiasClamp

func (self Instance) DepthBiasClamp() Float.X

A limit for how much each depth value can be offset. If negative, it serves as a minimum value, but if positive, it serves as a maximum value.

func (Instance) DepthBiasConstantFactor

func (self Instance) DepthBiasConstantFactor() Float.X

A constant offset added to each depth value. Applied after DepthBiasSlopeFactor.

func (Instance) DepthBiasEnabled

func (self Instance) DepthBiasEnabled() bool

If true, each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values of DepthBiasSlopeFactor and DepthBiasConstantFactor.

func (Instance) DepthBiasSlopeFactor

func (self Instance) DepthBiasSlopeFactor() Float.X

A constant scale applied to the slope of each polygons' depth. Applied before DepthBiasConstantFactor.

func (Instance) DiscardPrimitives

func (self Instance) DiscardPrimitives() bool

If true, primitives are discarded immediately before the rasterization stage.

func (Instance) EnableDepthClamp

func (self Instance) EnableDepthClamp() bool

If true, clamps depth values according to the minimum and maximum depth of the associated viewport.

func (Instance) FrontFace

func (self Instance) FrontFace() Rendering.PolygonFrontFace

The winding order to use to determine which face of a triangle is considered its front face.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) LineWidth

func (self Instance) LineWidth() Float.X

The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.

func (Instance) PatchControlPoints

func (self Instance) PatchControlPoints() int

The number of control points to use when drawing a patch with tessellation enabled. Higher values result in higher quality at the cost of performance.

func (Instance) SetCullMode

func (self Instance) SetCullMode(value Rendering.PolygonCullMode)

SetCullMode sets the property returned by [GetCullMode].

func (Instance) SetDepthBiasClamp

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

SetDepthBiasClamp sets the property returned by [GetDepthBiasClamp].

func (Instance) SetDepthBiasConstantFactor

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

SetDepthBiasConstantFactor sets the property returned by [GetDepthBiasConstantFactor].

func (Instance) SetDepthBiasEnabled

func (self Instance) SetDepthBiasEnabled(value bool)

SetDepthBiasEnabled sets the property returned by [GetDepthBiasEnabled].

func (Instance) SetDepthBiasSlopeFactor

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

SetDepthBiasSlopeFactor sets the property returned by [GetDepthBiasSlopeFactor].

func (Instance) SetDiscardPrimitives

func (self Instance) SetDiscardPrimitives(value bool)

SetDiscardPrimitives sets the property returned by [GetDiscardPrimitives].

func (Instance) SetEnableDepthClamp

func (self Instance) SetEnableDepthClamp(value bool)

SetEnableDepthClamp sets the property returned by [GetEnableDepthClamp].

func (Instance) SetFrontFace

func (self Instance) SetFrontFace(value Rendering.PolygonFrontFace)

SetFrontFace sets the property returned by [GetFrontFace].

func (Instance) SetLineWidth

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

SetLineWidth sets the property returned by [GetLineWidth].

func (*Instance) SetObject

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

func (Instance) SetPatchControlPoints

func (self Instance) SetPatchControlPoints(value int)

SetPatchControlPoints sets the property returned by [GetPatchControlPoints].

func (Instance) SetWireframe

func (self Instance) SetWireframe(value bool)

SetWireframe sets the property returned by [GetWireframe].

func (Instance) Virtual

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

func (Instance) Wireframe

func (self Instance) Wireframe() bool

If true, performs wireframe rendering for triangles instead of flat or textured rendering.

Jump to

Keyboard shortcuts

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