Package org.lwjgl.vulkan
Class VkDepthClampRangeEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkDepthClampRangeEXT {
float minDepthClamp;
float maxDepthClamp;
}-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDepthClampRangeEXT(ByteBuffer container) Creates aVkDepthClampRangeEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDepthClampRangeEXTcalloc()Returns a newVkDepthClampRangeEXTinstance allocated withmemCalloc.static VkDepthClampRangeEXT.Buffercalloc(int capacity) Returns a newVkDepthClampRangeEXT.Bufferinstance allocated withmemCalloc.static VkDepthClampRangeEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkDepthClampRangeEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDepthClampRangeEXTcalloc(MemoryStack stack) Returns a newVkDepthClampRangeEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDepthClampRangeEXTcreate()Returns a newVkDepthClampRangeEXTinstance allocated withBufferUtils.static VkDepthClampRangeEXT.Buffercreate(int capacity) Returns a newVkDepthClampRangeEXT.Bufferinstance allocated withBufferUtils.static VkDepthClampRangeEXTcreate(long address) Returns a newVkDepthClampRangeEXTinstance for the specified memory address.static VkDepthClampRangeEXT.Buffercreate(long address, int capacity) Create aVkDepthClampRangeEXT.Bufferinstance at the specified memory.static @Nullable VkDepthClampRangeEXTcreateSafe(long address) static @Nullable VkDepthClampRangeEXT.BuffercreateSafe(long address, int capacity) static VkDepthClampRangeEXTmalloc()Returns a newVkDepthClampRangeEXTinstance allocated withmemAlloc.static VkDepthClampRangeEXT.Buffermalloc(int capacity) Returns a newVkDepthClampRangeEXT.Bufferinstance allocated withmemAlloc.static VkDepthClampRangeEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkDepthClampRangeEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDepthClampRangeEXTmalloc(MemoryStack stack) Returns a newVkDepthClampRangeEXTinstance allocated on the specifiedMemoryStack.floatmaxDepthClamp(float value) Sets the specified value to themaxDepthClampfield.floatminDepthClamp(float value) Sets the specified value to theminDepthClampfield.static floatnmaxDepthClamp(long struct) Unsafe version ofmaxDepthClamp().static voidnmaxDepthClamp(long struct, float value) Unsafe version ofmaxDepthClamp.static floatnminDepthClamp(long struct) Unsafe version ofminDepthClamp().static voidnminDepthClamp(long struct, float value) Unsafe version ofminDepthClamp.set(float minDepthClamp, float maxDepthClamp) Initializes this struct with the specified values.set(VkDepthClampRangeEXT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
MINDEPTHCLAMP
public static final int MINDEPTHCLAMPThe struct member offsets. -
MAXDEPTHCLAMP
public static final int MAXDEPTHCLAMPThe struct member offsets.
-
-
Constructor Details
-
VkDepthClampRangeEXT
Creates aVkDepthClampRangeEXTinstance 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<VkDepthClampRangeEXT>
-
minDepthClamp
public float minDepthClamp()- Returns:
- the value of the
minDepthClampfield.
-
maxDepthClamp
public float maxDepthClamp()- Returns:
- the value of the
maxDepthClampfield.
-
minDepthClamp
Sets the specified value to theminDepthClampfield. -
maxDepthClamp
Sets the specified value to themaxDepthClampfield. -
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 newVkDepthClampRangeEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDepthClampRangeEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDepthClampRangeEXTinstance allocated withBufferUtils. -
create
Returns a newVkDepthClampRangeEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDepthClampRangeEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDepthClampRangeEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDepthClampRangeEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDepthClampRangeEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDepthClampRangeEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDepthClampRangeEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDepthClampRangeEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDepthClampRangeEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nminDepthClamp
public static float nminDepthClamp(long struct) Unsafe version ofminDepthClamp(). -
nmaxDepthClamp
public static float nmaxDepthClamp(long struct) Unsafe version ofmaxDepthClamp(). -
nminDepthClamp
public static void nminDepthClamp(long struct, float value) Unsafe version ofminDepthClamp. -
nmaxDepthClamp
public static void nmaxDepthClamp(long struct, float value) Unsafe version ofmaxDepthClamp.
-