Documentation ¶
Overview ¶
Package RDPipelineColorBlendStateAttachment provides methods for working with RDPipelineColorBlendStateAttachment object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AlphaBlendOp() gdclass.RenderingDeviceBlendOperation
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRDPipelineColorBlendStateAttachment() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) ColorBlendOp() gdclass.RenderingDeviceBlendOperation
- func (self Instance) DstAlphaBlendFactor() gdclass.RenderingDeviceBlendFactor
- func (self Instance) DstColorBlendFactor() gdclass.RenderingDeviceBlendFactor
- func (self Instance) EnableBlend() bool
- func (self Instance) SetAlphaBlendOp(value gdclass.RenderingDeviceBlendOperation)
- func (self Instance) SetAsMix()
- func (self Instance) SetColorBlendOp(value gdclass.RenderingDeviceBlendOperation)
- func (self Instance) SetDstAlphaBlendFactor(value gdclass.RenderingDeviceBlendFactor)
- func (self Instance) SetDstColorBlendFactor(value gdclass.RenderingDeviceBlendFactor)
- func (self Instance) SetEnableBlend(value bool)
- func (self Instance) SetSrcAlphaBlendFactor(value gdclass.RenderingDeviceBlendFactor)
- func (self Instance) SetSrcColorBlendFactor(value gdclass.RenderingDeviceBlendFactor)
- func (self Instance) SetWriteA(value bool)
- func (self Instance) SetWriteB(value bool)
- func (self Instance) SetWriteG(value bool)
- func (self Instance) SetWriteR(value bool)
- func (self Instance) SrcAlphaBlendFactor() gdclass.RenderingDeviceBlendFactor
- func (self Instance) SrcColorBlendFactor() gdclass.RenderingDeviceBlendFactor
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- func (self Instance) WriteA() bool
- func (self Instance) WriteB() bool
- func (self Instance) WriteG() bool
- func (self Instance) WriteR() bool
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 Instance ¶
type Instance [1]gdclass.RDPipelineColorBlendStateAttachment
Controls how blending between source and destination fragments is performed when using [RenderingDevice]. For reference, this is how common user-facing blend modes are implemented in Godot's 2D renderer: [b]Mix:[/b] [codeblock] var attachment = RDPipelineColorBlendStateAttachment.new() attachment.enable_blend = true attachment.color_blend_op = RenderingDevice.BLEND_OP_ADD attachment.src_color_blend_factor = RenderingDevice.BLEND_FACTOR_SRC_ALPHA attachment.dst_color_blend_factor = RenderingDevice.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA attachment.alpha_blend_op = RenderingDevice.BLEND_OP_ADD attachment.src_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ONE attachment.dst_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA [/codeblock] [b]Add:[/b] [codeblock] var attachment = RDPipelineColorBlendStateAttachment.new() attachment.enable_blend = true attachment.alpha_blend_op = RenderingDevice.BLEND_OP_ADD attachment.color_blend_op = RenderingDevice.BLEND_OP_ADD attachment.src_color_blend_factor = RenderingDevice.BLEND_FACTOR_SRC_ALPHA attachment.dst_color_blend_factor = RenderingDevice.BLEND_FACTOR_ONE attachment.src_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_SRC_ALPHA attachment.dst_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ONE [/codeblock] [b]Subtract:[/b] [codeblock] var attachment = RDPipelineColorBlendStateAttachment.new() attachment.enable_blend = true attachment.alpha_blend_op = RenderingDevice.BLEND_OP_REVERSE_SUBTRACT attachment.color_blend_op = RenderingDevice.BLEND_OP_REVERSE_SUBTRACT attachment.src_color_blend_factor = RenderingDevice.BLEND_FACTOR_SRC_ALPHA attachment.dst_color_blend_factor = RenderingDevice.BLEND_FACTOR_ONE attachment.src_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_SRC_ALPHA attachment.dst_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ONE [/codeblock] [b]Multiply:[/b] [codeblock] var attachment = RDPipelineColorBlendStateAttachment.new() attachment.enable_blend = true attachment.alpha_blend_op = RenderingDevice.BLEND_OP_ADD attachment.color_blend_op = RenderingDevice.BLEND_OP_ADD attachment.src_color_blend_factor = RenderingDevice.BLEND_FACTOR_DST_COLOR attachment.dst_color_blend_factor = RenderingDevice.BLEND_FACTOR_ZERO attachment.src_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_DST_ALPHA attachment.dst_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ZERO [/codeblock] [b]Pre-multiplied alpha:[/b] [codeblock] var attachment = RDPipelineColorBlendStateAttachment.new() attachment.enable_blend = true attachment.alpha_blend_op = RenderingDevice.BLEND_OP_ADD attachment.color_blend_op = RenderingDevice.BLEND_OP_ADD attachment.src_color_blend_factor = RenderingDevice.BLEND_FACTOR_ONE attachment.dst_color_blend_factor = RenderingDevice.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA attachment.src_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ONE attachment.dst_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA [/codeblock]
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AlphaBlendOp ¶
func (self Instance) AlphaBlendOp() gdclass.RenderingDeviceBlendOperation
func (Instance) AsRDPipelineColorBlendStateAttachment ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) ColorBlendOp ¶
func (self Instance) ColorBlendOp() gdclass.RenderingDeviceBlendOperation
func (Instance) DstAlphaBlendFactor ¶
func (self Instance) DstAlphaBlendFactor() gdclass.RenderingDeviceBlendFactor
func (Instance) DstColorBlendFactor ¶
func (self Instance) DstColorBlendFactor() gdclass.RenderingDeviceBlendFactor
func (Instance) EnableBlend ¶
func (Instance) SetAlphaBlendOp ¶
func (self Instance) SetAlphaBlendOp(value gdclass.RenderingDeviceBlendOperation)
func (Instance) SetAsMix ¶
func (self Instance) SetAsMix()
Convenience method to perform standard mix blending with straight (non-premultiplied) alpha. This sets [member enable_blend] to [code]true[/code], [member src_color_blend_factor] to [constant RenderingDevice.BLEND_FACTOR_SRC_ALPHA], [member dst_color_blend_factor] to [constant RenderingDevice.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA], [member src_alpha_blend_factor] to [constant RenderingDevice.BLEND_FACTOR_SRC_ALPHA] and [member dst_alpha_blend_factor] to [constant RenderingDevice.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA].
func (Instance) SetColorBlendOp ¶
func (self Instance) SetColorBlendOp(value gdclass.RenderingDeviceBlendOperation)
func (Instance) SetDstAlphaBlendFactor ¶
func (self Instance) SetDstAlphaBlendFactor(value gdclass.RenderingDeviceBlendFactor)
func (Instance) SetDstColorBlendFactor ¶
func (self Instance) SetDstColorBlendFactor(value gdclass.RenderingDeviceBlendFactor)
func (Instance) SetEnableBlend ¶
func (Instance) SetSrcAlphaBlendFactor ¶
func (self Instance) SetSrcAlphaBlendFactor(value gdclass.RenderingDeviceBlendFactor)
func (Instance) SetSrcColorBlendFactor ¶
func (self Instance) SetSrcColorBlendFactor(value gdclass.RenderingDeviceBlendFactor)
func (Instance) SrcAlphaBlendFactor ¶
func (self Instance) SrcAlphaBlendFactor() gdclass.RenderingDeviceBlendFactor
func (Instance) SrcColorBlendFactor ¶
func (self Instance) SrcColorBlendFactor() gdclass.RenderingDeviceBlendFactor