Package org.lwjgl.util.spvc
Class SpvcHlslRootConstants
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcHlslRootConstants
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcHlslRootConstants extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecifying a root constant (d3d12) or push constant range (vulkan).startandenddenotes the range of the root constant in bytes. Both values need to be multiple of 4.Layout
struct spvc_hlsl_root_constants { unsigned int start; unsigned int end; unsigned int binding; unsigned int space; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvcHlslRootConstants.BufferAn array ofSpvcHlslRootConstantsstructs.
-
Constructor Summary
Constructors Constructor Description SpvcHlslRootConstants(java.nio.ByteBuffer container)Creates aSpvcHlslRootConstantsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbinding()SpvcHlslRootConstantsbinding(int value)Sets the specified value to thebindingfield.static SpvcHlslRootConstantscalloc()Returns a newSpvcHlslRootConstantsinstance allocated withmemCalloc.static SpvcHlslRootConstants.Buffercalloc(int capacity)Returns a newSpvcHlslRootConstants.Bufferinstance allocated withmemCalloc.static SpvcHlslRootConstants.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHlslRootConstantscalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslRootConstantsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHlslRootConstantscreate()Returns a newSpvcHlslRootConstantsinstance allocated withBufferUtils.static SpvcHlslRootConstants.Buffercreate(int capacity)Returns a newSpvcHlslRootConstants.Bufferinstance allocated withBufferUtils.static SpvcHlslRootConstantscreate(long address)Returns a newSpvcHlslRootConstantsinstance for the specified memory address.static SpvcHlslRootConstants.Buffercreate(long address, int capacity)Create aSpvcHlslRootConstants.Bufferinstance at the specified memory.static SpvcHlslRootConstantscreateSafe(long address)static SpvcHlslRootConstants.BuffercreateSafe(long address, int capacity)intend()SpvcHlslRootConstantsend(int value)Sets the specified value to theendfield.static SpvcHlslRootConstantsmalloc()Returns a newSpvcHlslRootConstantsinstance allocated withmemAlloc.static SpvcHlslRootConstants.Buffermalloc(int capacity)Returns a newSpvcHlslRootConstants.Bufferinstance allocated withmemAlloc.static SpvcHlslRootConstants.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStack.static SpvcHlslRootConstantsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslRootConstantsinstance allocated on the specifiedMemoryStack.static intnbinding(long struct)Unsafe version ofbinding().static voidnbinding(long struct, int value)Unsafe version ofbinding.static intnend(long struct)Unsafe version ofend().static voidnend(long struct, int value)Unsafe version ofend.static intnspace(long struct)Unsafe version ofspace().static voidnspace(long struct, int value)Unsafe version ofspace.static intnstart(long struct)Unsafe version ofstart().static voidnstart(long struct, int value)Unsafe version ofstart.SpvcHlslRootConstantsset(int start, int end, int binding, int space)Initializes this struct with the specified values.SpvcHlslRootConstantsset(SpvcHlslRootConstants src)Copies the specified struct data to this struct.intsizeof()intspace()SpvcHlslRootConstantsspace(int value)Sets the specified value to thespacefield.intstart()SpvcHlslRootConstantsstart(int value)Sets the specified value to thestartfield.
-
-
-
Constructor Detail
-
SpvcHlslRootConstants
public SpvcHlslRootConstants(java.nio.ByteBuffer container)
Creates aSpvcHlslRootConstantsinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
start
public int start()
- Returns:
- the value of the
startfield.
-
end
public int end()
- Returns:
- the value of the
endfield.
-
binding
public int binding()
- Returns:
- the value of the
bindingfield.
-
space
public int space()
- Returns:
- the value of the
spacefield.
-
start
public SpvcHlslRootConstants start(int value)
Sets the specified value to thestartfield.
-
end
public SpvcHlslRootConstants end(int value)
Sets the specified value to theendfield.
-
binding
public SpvcHlslRootConstants binding(int value)
Sets the specified value to thebindingfield.
-
space
public SpvcHlslRootConstants space(int value)
Sets the specified value to thespacefield.
-
set
public SpvcHlslRootConstants set(int start, int end, int binding, int space)
Initializes this struct with the specified values.
-
set
public SpvcHlslRootConstants set(SpvcHlslRootConstants src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcHlslRootConstants malloc()
Returns a newSpvcHlslRootConstantsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcHlslRootConstants calloc()
Returns a newSpvcHlslRootConstantsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcHlslRootConstants create()
Returns a newSpvcHlslRootConstantsinstance allocated withBufferUtils.
-
create
public static SpvcHlslRootConstants create(long address)
Returns a newSpvcHlslRootConstantsinstance for the specified memory address.
-
createSafe
@Nullable public static SpvcHlslRootConstants createSafe(long address)
-
malloc
public static SpvcHlslRootConstants.Buffer malloc(int capacity)
Returns a newSpvcHlslRootConstants.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcHlslRootConstants.Buffer calloc(int capacity)
Returns a newSpvcHlslRootConstants.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcHlslRootConstants.Buffer create(int capacity)
Returns a newSpvcHlslRootConstants.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcHlslRootConstants.Buffer create(long address, int capacity)
Create aSpvcHlslRootConstants.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcHlslRootConstants.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcHlslRootConstants malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslRootConstantsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcHlslRootConstants calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslRootConstantsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcHlslRootConstants.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcHlslRootConstants.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nstart
public static int nstart(long struct)
Unsafe version ofstart().
-
nend
public static int nend(long struct)
Unsafe version ofend().
-
nbinding
public static int nbinding(long struct)
Unsafe version ofbinding().
-
nspace
public static int nspace(long struct)
Unsafe version ofspace().
-
nstart
public static void nstart(long struct, int value)Unsafe version ofstart.
-
nend
public static void nend(long struct, int value)Unsafe version ofend.
-
nbinding
public static void nbinding(long struct, int value)Unsafe version ofbinding.
-
nspace
public static void nspace(long struct, int value)Unsafe version ofspace.
-
-