Shader
Declaration
public abstract class Strawberry.Graphics.Shader
Represents a texture.
Inherits: Strawberry.DisposableReferenceObject
Properties
GraphicsContext abstract
Gets the graphics context by which the resource is created
IGraphicsContext GraphicsContext { get }
Methods
Activate abstract
Activates the shader for rendering
void Activate()
SetMatrixParameterByName abstract
Sets a matrix parameter used inside shader
void SetMatrixParameterByName(string constantBuffer, string variableName, Matrix4 mat, bool transpose)
Parameters:
| Name | Type | Description |
|---|---|---|
constantBuffer |
System.String |
The name of constant buffer in which the matrix is available |
variableName |
System.String |
The name of matrix variable inside shader |
mat |
Strawberry.Math.Matrix4 |
The matrix value |
transpose |
System.Boolean |
If true the transposed version of matrix will be passed to the shader |