Class ShaderArgsBuilder
- All Implemented Interfaces:
Proxy
GskGLShader.-
Constructor Summary
ConstructorsConstructorDescriptionShaderArgsBuilder(MemorySegment address) Deprecated.Create a ShaderArgsBuilder proxy instance for the provided memory address.ShaderArgsBuilder(GLShader shader, byte @Nullable [] initialValues) Deprecated.GTK's new Vulkan-focused rendering does not support this feature. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Deprecated.GTK's new Vulkan-focused rendering does not support this feature.static @Nullable TypegetType()Deprecated.Get the GType of the ShaderArgsBuilder classref()Deprecated.GTK's new Vulkan-focused rendering does not support this feature.voidsetBool(int idx, boolean value) Deprecated.GTK's new Vulkan-focused rendering does not support this feature.voidsetFloat(int idx, float value) Deprecated.Sets the value of the uniformidx.voidsetInt(int idx, int value) Deprecated.GTK's new Vulkan-focused rendering does not support this feature.voidsetUint(int idx, int value) Deprecated.GTK's new Vulkan-focused rendering does not support this feature.voidDeprecated.GTK's new Vulkan-focused rendering does not support this feature.voidDeprecated.GTK's new Vulkan-focused rendering does not support this feature.voidDeprecated.GTK's new Vulkan-focused rendering does not support this feature.byte[]toArgs()Deprecated.GTK's new Vulkan-focused rendering does not support this feature.voidunref()Deprecated.GTK's new Vulkan-focused rendering does not support this feature.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ShaderArgsBuilder
Deprecated.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- aGskGLShaderinitialValues- optionalGByteswith initial values
-
-
Method Details
-
getType
Deprecated.Get the GType of the ShaderArgsBuilder class- Returns:
- the GType
-
freeToArgs
Deprecated.GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.Creates a newGBytesargs from the current state of the givenbuilder,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 aGskShaderArgsBuilderby 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) Deprecated.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 newGBytesargs from the current state of the givenbuilder.Any uniforms of the shader that have not been explicitly set on the this ShaderArgsBuilder are zero-initialized.
The given
GskShaderArgsBuilderis 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 aGskShaderArgBuilderby one.If the resulting reference count is zero, frees the builder.
-