Package org.lwjgl.sdl

Class SDL_GPUDepthStencilTargetInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SDL_GPUDepthStencilTargetInfo>, NativeResource, Pointer
Enclosing class:
SDL_GPUDepthStencilTargetInfo

public static class SDL_GPUDepthStencilTargetInfo.Buffer extends StructBuffer<SDL_GPUDepthStencilTargetInfo,SDL_GPUDepthStencilTargetInfo.Buffer> implements NativeResource
An array of SDL_GPUDepthStencilTargetInfo structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_GPUDepthStencilTargetInfo.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by SDL_GPUDepthStencilTargetInfo.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • texture

      public long texture()
      Returns:
      the value of the texture field.
    • clear_depth

      public float clear_depth()
      Returns:
      the value of the clear_depth field.
    • load_op

      public int load_op()
      Returns:
      the value of the load_op field.
    • store_op

      public int store_op()
      Returns:
      the value of the store_op field.
    • stencil_load_op

      public int stencil_load_op()
      Returns:
      the value of the stencil_load_op field.
    • stencil_store_op

      public int stencil_store_op()
      Returns:
      the value of the stencil_store_op field.
    • cycle

      public boolean cycle()
      Returns:
      the value of the cycle field.
    • clear_stencil

      public byte clear_stencil()
      Returns:
      the value of the clear_stencil field.
    • texture

      public SDL_GPUDepthStencilTargetInfo.Buffer texture(long value)
      Sets the specified value to the texture field.
    • clear_depth

      public SDL_GPUDepthStencilTargetInfo.Buffer clear_depth(float value)
      Sets the specified value to the clear_depth field.
    • load_op

      public SDL_GPUDepthStencilTargetInfo.Buffer load_op(int value)
      Sets the specified value to the load_op field.
    • store_op

      public SDL_GPUDepthStencilTargetInfo.Buffer store_op(int value)
      Sets the specified value to the store_op field.
    • stencil_load_op

      public SDL_GPUDepthStencilTargetInfo.Buffer stencil_load_op(int value)
      Sets the specified value to the stencil_load_op field.
    • stencil_store_op

      public SDL_GPUDepthStencilTargetInfo.Buffer stencil_store_op(int value)
      Sets the specified value to the stencil_store_op field.
    • cycle

      public SDL_GPUDepthStencilTargetInfo.Buffer cycle(boolean value)
      Sets the specified value to the cycle field.
    • clear_stencil

      public SDL_GPUDepthStencilTargetInfo.Buffer clear_stencil(byte value)
      Sets the specified value to the clear_stencil field.