Class ShaderArgsBuilder
-
Constructor Summary
ConstructorDescriptionShaderArgsBuilder
(MemorySegment address) Create a ShaderArgsBuilder proxy instance for the provided memory address.ShaderArgsBuilder
(GLShader shader, @Nullable Bytes initialValues) Deprecated.GTK's new Vulkan-focused rendering does not support this feature. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.GTK's new Vulkan-focused rendering does not support this feature.static Type
getType()
Get the GType of the ShaderArgsBuilder classref()
Deprecated.GTK's new Vulkan-focused rendering does not support this feature.void
setBool
(int idx, boolean value) Deprecated.GTK's new Vulkan-focused rendering does not support this feature.void
setFloat
(int idx, float value) Sets the value of the uniformidx
.void
setInt
(int idx, int value) Deprecated.GTK's new Vulkan-focused rendering does not support this feature.void
setUint
(int idx, int value) Deprecated.GTK's new Vulkan-focused rendering does not support this feature.void
Deprecated.GTK's new Vulkan-focused rendering does not support this feature.void
Deprecated.GTK's new Vulkan-focused rendering does not support this feature.void
Deprecated.GTK's new Vulkan-focused rendering does not support this feature.toArgs()
Deprecated.GTK's new Vulkan-focused rendering does not support this feature.void
unref()
Deprecated.GTK's new Vulkan-focused rendering does not support this feature.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ShaderArgsBuilder
Create a ShaderArgsBuilder proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ShaderArgsBuilder
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Allocates a builder that can be used to construct a new uniform data chunk.- Parameters:
shader
- aGskGLShader
initialValues
- optionalGBytes
with initial values
-
-
Method Details
-
getType
-
freeToArgs
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Creates a newGBytes
args from the current state of the given this ShaderArgsBuilder, and frees the this ShaderArgsBuilder instance.Any uniforms of the shader that have not been explicitly set on the this ShaderArgsBuilder are zero-initialized.
- Returns:
- the newly allocated buffer with all the args added to this ShaderArgsBuilder
-
ref
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Increases the reference count of aGskShaderArgsBuilder
by one.- Returns:
- the passed in
GskShaderArgsBuilder
-
setBool
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Sets the value of the uniformidx
.The uniform must be of bool type.
- Parameters:
idx
- index of the uniformvalue
- value to set the uniform to
-
setFloat
public void setFloat(int idx, float value) Sets the value of the uniformidx
.The uniform must be of float type.
- Parameters:
idx
- index of the uniformvalue
- value to set the uniform to
-
setInt
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Sets the value of the uniformidx
.The uniform must be of int type.
- Parameters:
idx
- index of the uniformvalue
- value to set the uniform to
-
setUint
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Sets the value of the uniformidx
.The uniform must be of uint type.
- Parameters:
idx
- index of the uniformvalue
- value to set the uniform to
-
setVec2
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Sets the value of the uniformidx
.The uniform must be of vec2 type.
- Parameters:
idx
- index of the uniformvalue
- value to set the uniform too
-
setVec3
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Sets the value of the uniformidx
.The uniform must be of vec3 type.
- Parameters:
idx
- index of the uniformvalue
- value to set the uniform too
-
setVec4
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Sets the value of the uniformidx
.The uniform must be of vec4 type.
- Parameters:
idx
- index of the uniformvalue
- value to set the uniform too
-
toArgs
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Creates a newGBytes
args from the current state of the given this ShaderArgsBuilder.Any uniforms of the shader that have not been explicitly set on the this ShaderArgsBuilder are zero-initialized.
The given
GskShaderArgsBuilder
is reset once this function returns; you cannot call this function multiple times on the same this ShaderArgsBuilder instance.This function is intended primarily for bindings. C code should use
freeToArgs()
.- Returns:
- the newly allocated buffer with all the args added to this ShaderArgsBuilder
-
unref
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Decreases the reference count of aGskShaderArgBuilder
by one.If the resulting reference count is zero, frees the builder.
-