Class ShaderArgsBuilder

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gsk.ShaderArgsBuilder
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class ShaderArgsBuilder extends ProxyInstance
Deprecated.
Builds the uniforms data for a GskGLShader.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Type
    Method
    Description
    byte[]
    Deprecated.
    GTK's new Vulkan-focused rendering does not support this feature.
    Deprecated.
    The memory layout of the native struct.
    static @Nullable Type
    Deprecated.
    Get the GType of the ShaderArgsBuilder class.
    ref()
    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)
    Deprecated.
    Sets the value of the uniform idx.
    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
    setVec2(int idx, Vec2 value)
    Deprecated.
    GTK's new Vulkan-focused rendering does not support this feature.
    void
    setVec3(int idx, Vec3 value)
    Deprecated.
    GTK's new Vulkan-focused rendering does not support this feature.
    void
    setVec4(int idx, Vec4 value)
    Deprecated.
    GTK's new Vulkan-focused rendering does not support this feature.
    byte[]
    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.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShaderArgsBuilder

      public ShaderArgsBuilder(MemorySegment address)
      Deprecated.
      Create a ShaderArgsBuilder proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ShaderArgsBuilder

      @Deprecated public ShaderArgsBuilder(GLShader shader, byte @Nullable [] initialValues)
      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 - a GskGLShader
      initialValues - optional GBytes with initial values
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the ShaderArgsBuilder class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • freeToArgs

      @Deprecated public byte[] freeToArgs()
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Creates a new GBytes args from the current state of the given builder, 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 a GskShaderArgsBuilder by one.
      Returns:
      the passed in GskShaderArgsBuilder
    • setBool

      @Deprecated public void setBool(int idx, boolean value)
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Sets the value of the uniform idx.

      The uniform must be of bool type.

      Parameters:
      idx - index of the uniform
      value - value to set the uniform to
    • setFloat

      public void setFloat(int idx, float value)
      Deprecated.

      Sets the value of the uniform idx.

      The uniform must be of float type.

      Parameters:
      idx - index of the uniform
      value - value to set the uniform to
    • setInt

      @Deprecated public void setInt(int idx, int value)
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Sets the value of the uniform idx.

      The uniform must be of int type.

      Parameters:
      idx - index of the uniform
      value - value to set the uniform to
    • setUint

      @Deprecated public void setUint(int idx, int value)
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Sets the value of the uniform idx.

      The uniform must be of uint type.

      Parameters:
      idx - index of the uniform
      value - value to set the uniform to
    • setVec2

      @Deprecated public void setVec2(int idx, Vec2 value)
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Sets the value of the uniform idx.

      The uniform must be of vec2 type.

      Parameters:
      idx - index of the uniform
      value - value to set the uniform too
    • setVec3

      @Deprecated public void setVec3(int idx, Vec3 value)
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Sets the value of the uniform idx.

      The uniform must be of vec3 type.

      Parameters:
      idx - index of the uniform
      value - value to set the uniform too
    • setVec4

      @Deprecated public void setVec4(int idx, Vec4 value)
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Sets the value of the uniform idx.

      The uniform must be of vec4 type.

      Parameters:
      idx - index of the uniform
      value - value to set the uniform too
    • toArgs

      @Deprecated public byte[] toArgs()
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Creates a new GBytes args from the current state of the given builder.

      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 public void unref()
      Deprecated.
      GTK's new Vulkan-focused rendering does not support this feature. Use GtkGLArea for OpenGL rendering.

      Decreases the reference count of a GskShaderArgBuilder by one.

      If the resulting reference count is zero, frees the builder.