Package org.lwjgl.vulkan
Class VkDepthClampRangeEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDepthClampRangeEXT>
org.lwjgl.vulkan.VkDepthClampRangeEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDepthClampRangeEXT
extends org.lwjgl.system.Struct<VkDepthClampRangeEXT>
implements org.lwjgl.system.NativeResource
Structure specifying a depth clamp range.
Valid Usage
minDepthClampmust be less than or equal tomaxDepthClamp- If the
VK_EXT_depth_range_unrestrictedextension is not enabled,minDepthClampmust be greater than or equal to0.0 - If the
VK_EXT_depth_range_unrestrictedextension is not enabled,maxDepthClampmust be less than or equal to1.0
See Also
VkPipelineViewportDepthClampControlCreateInfoEXT, CmdSetDepthClampRangeEXT
Layout
struct VkDepthClampRangeEXT {
float minDepthClamp();
float maxDepthClamp();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newVkDepthClampRangeEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDepthClampRangeEXTcalloc(org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newVkDepthClampRangeEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDepthClampRangeEXTmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDepthClampRangeEXTinstance allocated on the specifiedMemoryStack.floatsetszmaxin the depth clamp range of the viewport.maxDepthClamp(float value) Sets the specified value to themaxDepthClamp()field.floatsetszminin the depth clamp range of the viewport.minDepthClamp(float value) Sets the specified value to theminDepthClamp()field.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()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkDepthClampRangeEXT>
-
minDepthClamp
public float minDepthClamp()setszminin the depth clamp range of the viewport. -
maxDepthClamp
public float maxDepthClamp()setszmaxin the depth clamp range of the viewport. -
minDepthClamp
Sets the specified value to theminDepthClamp()field. -
maxDepthClamp
Sets the specified value to themaxDepthClamp()field. -
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.
-