Documentation
¶
Overview ¶
Package RDShaderSource provides methods for working with RDShaderSource object instances.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRDShaderSource() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) ID() ID
- func (self Instance) Language() Rendering.ShaderLanguage
- func (self Instance) SetLanguage(value Rendering.ShaderLanguage)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetSourceCompute(value string)
- func (self Instance) SetSourceFragment(value string)
- func (self Instance) SetSourceTesselationControl(value string)
- func (self Instance) SetSourceTesselationEvaluation(value string)
- func (self Instance) SetSourceVertex(value string)
- func (self Instance) SourceCompute() string
- func (self Instance) SourceFragment() string
- func (self Instance) SourceTesselationControl() string
- func (self Instance) SourceTesselationEvaluation() string
- func (self Instance) SourceVertex() string
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
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 Extension ¶
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]) AsRDShaderSource ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
type 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.
type Instance ¶
type Instance [1]gdclass.RDShaderSource
Shader source code in text form. See also [RDShaderFile]. [RDShaderSource] is only meant to be used with the [RenderingDevice] API. It should not be confused with Godot's own [Shader] resource, which is what Godot's various nodes use for high-level shader programming.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRDShaderSource ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) Language ¶
func (self Instance) Language() Rendering.ShaderLanguage
func (Instance) SetLanguage ¶
func (self Instance) SetLanguage(value Rendering.ShaderLanguage)