Package org.lwjgl.util.spvc
Class SpvcHlslRootConstants
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spvc_hlsl_root_constants {
unsigned int start;
unsigned int end;
unsigned int binding;
unsigned int space;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSpvcHlslRootConstants(ByteBuffer container) Creates aSpvcHlslRootConstantsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbinding()binding(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, MemoryStack stack) Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHlslRootConstantscalloc(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 @Nullable SpvcHlslRootConstantscreateSafe(long address) static @Nullable SpvcHlslRootConstants.BuffercreateSafe(long address, int capacity) intend()end(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, MemoryStack stack) Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStack.static SpvcHlslRootConstantsmalloc(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.set(int start, int end, int binding, int space) Initializes this struct with the specified values.set(SpvcHlslRootConstants src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intspace()space(int value) Sets the specified value to thespacefield.intstart()start(int value) Sets the specified value to thestartfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
START
public static final int STARTThe struct member offsets. -
END
public static final int ENDThe struct member offsets. -
BINDING
public static final int BINDINGThe struct member offsets. -
SPACE
public static final int SPACEThe struct member offsets.
-
-
Constructor Details
-
SpvcHlslRootConstants
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SpvcHlslRootConstants>
-
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
Sets the specified value to thestartfield. -
end
Sets the specified value to theendfield. -
binding
Sets the specified value to thebindingfield. -
space
Sets the specified value to thespacefield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newSpvcHlslRootConstantsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcHlslRootConstantsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcHlslRootConstantsinstance allocated withBufferUtils. -
create
Returns a newSpvcHlslRootConstantsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcHlslRootConstants.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcHlslRootConstants.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcHlslRootConstants.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcHlslRootConstants.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcHlslRootConstantsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcHlslRootConstantsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcHlslRootConstants.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-