Class GLShader
public class GLShader
- Inheritance
-
GLShader
- Inherited Members
Methods
Compile(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method gsk_gl_shader_compile.
public static extern bool Compile(IntPtr shader, IntPtr renderer, out ErrorOwnedHandle error)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
renderer
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
FindUniformByName(IntPtr, NonNullableUtf8StringHandle)
Calls native method gsk_gl_shader_find_uniform_by_name.
public static extern int FindUniformByName(IntPtr shader, NonNullableUtf8StringHandle name)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
FormatArgsVa(IntPtr, IntPtr)
Calls native method gsk_gl_shader_format_args_va.
public static extern BytesOwnedHandle FormatArgsVa(IntPtr shader, IntPtr uniforms)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
uniforms
IntPtrTransfer ownership: None Nullable: False
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
GetArgBool(IntPtr, BytesHandle, int)
Calls native method gsk_gl_shader_get_arg_bool.
public static extern bool GetArgBool(IntPtr shader, BytesHandle args, int idx)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
args
BytesHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetArgFloat(IntPtr, BytesHandle, int)
Calls native method gsk_gl_shader_get_arg_float.
public static extern float GetArgFloat(IntPtr shader, BytesHandle args, int idx)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
args
BytesHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
Returns
- float
Transfer ownership: None Nullable: False
GetArgInt(IntPtr, BytesHandle, int)
Calls native method gsk_gl_shader_get_arg_int.
public static extern int GetArgInt(IntPtr shader, BytesHandle args, int idx)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
args
BytesHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetArgUint(IntPtr, BytesHandle, int)
Calls native method gsk_gl_shader_get_arg_uint.
public static extern uint GetArgUint(IntPtr shader, BytesHandle args, int idx)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
args
BytesHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
GetArgVec2(IntPtr, BytesHandle, int, Vec2Handle)
Calls native method gsk_gl_shader_get_arg_vec2.
public static extern void GetArgVec2(IntPtr shader, BytesHandle args, int idx, Vec2Handle outValue)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
args
BytesHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
outValue
Vec2HandleTransfer ownership: None Nullable: False
GetArgVec3(IntPtr, BytesHandle, int, Vec3Handle)
Calls native method gsk_gl_shader_get_arg_vec3.
public static extern void GetArgVec3(IntPtr shader, BytesHandle args, int idx, Vec3Handle outValue)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
args
BytesHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
outValue
Vec3HandleTransfer ownership: None Nullable: False
GetArgVec4(IntPtr, BytesHandle, int, Vec4Handle)
Calls native method gsk_gl_shader_get_arg_vec4.
public static extern void GetArgVec4(IntPtr shader, BytesHandle args, int idx, Vec4Handle outValue)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
args
BytesHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
outValue
Vec4HandleTransfer ownership: None Nullable: False
GetArgsSize(IntPtr)
Calls native method gsk_gl_shader_get_args_size.
public static extern nuint GetArgsSize(IntPtr shader)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
Returns
- nuint
Transfer ownership: None Nullable: False
GetGType()
Calls native function gsk_gl_shader_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetNTextures(IntPtr)
Calls native method gsk_gl_shader_get_n_textures.
public static extern int GetNTextures(IntPtr shader)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetNUniforms(IntPtr)
Calls native method gsk_gl_shader_get_n_uniforms.
public static extern int GetNUniforms(IntPtr shader)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetResource(IntPtr)
Calls native method gsk_gl_shader_get_resource.
public static extern NullableUtf8StringUnownedHandle GetResource(IntPtr shader)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetSource(IntPtr)
Calls native method gsk_gl_shader_get_source.
public static extern BytesUnownedHandle GetSource(IntPtr shader)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
Returns
- BytesUnownedHandle
Transfer ownership: None Nullable: False
GetUniformName(IntPtr, int)
Calls native method gsk_gl_shader_get_uniform_name.
public static extern NonNullableUtf8StringUnownedHandle GetUniformName(IntPtr shader, int idx)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetUniformOffset(IntPtr, int)
Calls native method gsk_gl_shader_get_uniform_offset.
public static extern int GetUniformOffset(IntPtr shader, int idx)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetUniformType(IntPtr, int)
Calls native method gsk_gl_shader_get_uniform_type.
public static extern GLUniformType GetUniformType(IntPtr shader, int idx)
Parameters
shader
IntPtrTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
Returns
- GLUniformType
Transfer ownership: None Nullable: False
NewFromBytes(BytesHandle)
Calls native constructor gsk_gl_shader_new_from_bytes.
public static extern IntPtr NewFromBytes(BytesHandle sourcecode)
Parameters
sourcecode
BytesHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewFromResource(NonNullableUtf8StringHandle)
Calls native constructor gsk_gl_shader_new_from_resource.
public static extern IntPtr NewFromResource(NonNullableUtf8StringHandle resourcePath)
Parameters
resourcePath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False