Documentation
¶
Overview ¶
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.
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) 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
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 (Instance) AsRDShaderSource ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) Language ¶
func (self Instance) Language() Rendering.ShaderLanguage
The language the shader is written in.
func (Instance) SetLanguage ¶
func (self Instance) SetLanguage(value Rendering.ShaderLanguage)
SetLanguage sets the property returned by [GetLanguage].
func (Instance) SetSourceCompute ¶
SetSourceCompute sets the property returned by [GetStageSource].
func (Instance) SetSourceFragment ¶
SetSourceFragment sets the property returned by [GetStageSource].
func (Instance) SetSourceTesselationControl ¶
SetSourceTesselationControl sets the property returned by [GetStageSource].
func (Instance) SetSourceTesselationEvaluation ¶
SetSourceTesselationEvaluation sets the property returned by [GetStageSource].
func (Instance) SetSourceVertex ¶
SetSourceVertex sets the property returned by [GetStageSource].
func (Instance) SourceCompute ¶
Source code for the shader's compute stage.
func (Instance) SourceFragment ¶
Source code for the shader's fragment stage.
func (Instance) SourceTesselationControl ¶
Source code for the shader's tessellation control stage.
func (Instance) SourceTesselationEvaluation ¶
Source code for the shader's tessellation evaluation stage.
func (Instance) SourceVertex ¶
Source code for the shader's vertex stage.