VkMicromapTypeEXT of the micromap is MICROMAP_TYPE_OPACITY_MICROMAP_EXT then format must be OPACITY_MICROMAP_FORMAT_2_STATE_EXT or OPACITY_MICROMAP_FORMAT_4_STATE_EXTVkMicromapTypeEXT of the micromap is MICROMAP_TYPE_OPACITY_MICROMAP_EXT and format is OPACITY_MICROMAP_FORMAT_2_STATE_EXT then subdivisionLevel must be less than or equal to VkPhysicalDeviceOpacityMicromapPropertiesEXT::maxOpacity2StateSubdivisionLevelVkMicromapTypeEXT of the micromap is MICROMAP_TYPE_OPACITY_MICROMAP_EXT and format is OPACITY_MICROMAP_FORMAT_4_STATE_EXT then subdivisionLevel must be less than or equal to VkPhysicalDeviceOpacityMicromapPropertiesEXT::maxOpacity4StateSubdivisionLevelVkMicromapTypeEXT of the micromap is MICROMAP_TYPE_DISPLACEMENT_MICROMAP_NV then format must be DISPLACEMENT_MICROMAP_FORMAT_64_TRIANGLES_64_BYTES_NV, DISPLACEMENT_MICROMAP_FORMAT_256_TRIANGLES_128_BYTES_NV or DISPLACEMENT_MICROMAP_FORMAT_1024_TRIANGLES_128_BYTES_NVVkMicromapTypeEXT of the micromap is MICROMAP_TYPE_DISPLACEMENT_MICROMAP_NV then subdivisionLevel must be less than or equal to VkPhysicalDeviceDisplacementMicromapPropertiesNV::maxDisplacementMicromapSubdivisionLevelThe format is interpreted based on the type of the micromap using it.
VkAccelerationStructureTrianglesDisplacementMicromapNV, VkAccelerationStructureTrianglesOpacityMicromapEXT, VkMicromapBuildInfoEXT
struct VkMicromapUsageEXT {
uint32_t count;
uint32_t subdivisionLevel;
uint32_t format;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkMicromapUsageEXT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COUNT
The struct member offsets. |
| public static final int | FORMAT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SUBDIVISIONLEVEL
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkMicromapUsageEXT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkMicromapUsageEXT | |
| public static VkMicromapUsageEXT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkMicromapUsageEXT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMicromapUsageEXT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | count()
the number of triangles in the usage format defined by the |
| public VkMicromapUsageEXT | |
| protected VkMicromapUsageEXT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkMicromapUsageEXT | |
| public static VkMicromapUsageEXT | |
| public static VkMicromapUsageEXT. | create(int
the buffer capacity capacity)Returns a new |
| public static VkMicromapUsageEXT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkMicromapUsageEXT | |
| public static VkMicromapUsageEXT. | |
| public int | |
| public VkMicromapUsageEXT | |
| public static VkMicromapUsageEXT | |
| public static VkMicromapUsageEXT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkMicromapUsageEXT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMicromapUsageEXT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public VkMicromapUsageEXT | |
| public VkMicromapUsageEXT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkMicromapUsageEXT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| COUNT | back to summary |
|---|---|
| public static final int COUNT The struct member offsets. | |
| FORMAT | back to summary |
|---|---|
| public static final int FORMAT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SUBDIVISIONLEVEL | back to summary |
|---|---|
| public static final int SUBDIVISIONLEVEL The struct member offsets. | |
| VkMicromapUsageEXT | back to summary |
|---|---|
| protected VkMicromapUsageEXT(long address, ByteBuffer container) | |
| VkMicromapUsageEXT | back to summary |
|---|---|
| public VkMicromapUsageEXT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT. Returns a new
| |
| count | back to summary |
|---|---|
| public int count() the number of triangles in the usage format defined by the
| |
| count | back to summary |
|---|---|
| public VkMicromapUsageEXT count(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected VkMicromapUsageEXT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkMicromapUsageEXT create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkMicromapUsageEXT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkMicromapUsageEXT. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkMicromapUsageEXT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkMicromapUsageEXT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkMicromapUsageEXT. Like
| |
| format | back to summary |
|---|---|
| public int format() the format of this usage format
| |
| format | back to summary |
|---|---|
| public VkMicromapUsageEXT format(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMicromapUsageEXT. Returns a new
| |
| ncount | back to summary |
|---|---|
| public static int ncount(long struct) Unsafe version of | |
| ncount | back to summary |
|---|---|
| public static void ncount(long struct, int value) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static int nformat(long struct) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static void nformat(long struct, int value) Unsafe version of | |
| nsubdivisionLevel | back to summary |
|---|---|
| public static int nsubdivisionLevel(long struct) Unsafe version of | |
| nsubdivisionLevel | back to summary |
|---|---|
| public static void nsubdivisionLevel(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public VkMicromapUsageEXT set(int count, int subdivisionLevel, int format) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkMicromapUsageEXT set(VkMicromapUsageEXT src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| subdivisionLevel | back to summary |
|---|---|
| public int subdivisionLevel() the subdivision level of this usage format
| |
| subdivisionLevel | back to summary |
|---|---|
| public VkMicromapUsageEXT subdivisionLevel(int value) Sets the specified value to the | |
VkMicromapUsageEXT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkMicromapUsageEXT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkMicromapUsageEXT. | |
| public int | |
| public VkMicromapUsageEXT. | |
| protected VkMicromapUsageEXT | |
| protected VkMicromapUsageEXT. | |
| public int | |
| public VkMicromapUsageEXT. | subdivisionLevel(int value)
Sets the specified value to the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkMicromapUsageEXT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| count | back to summary |
|---|---|
public int count()
| |
| count | back to summary |
|---|---|
| public VkMicromapUsageEXT. Sets the specified value to the | |
| format | back to summary |
|---|---|
public int format()
| |
| format | back to summary |
|---|---|
| public VkMicromapUsageEXT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkMicromapUsageEXT getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected VkMicromapUsageEXT. Implements abstract org.
| |
| subdivisionLevel | back to summary |
|---|---|
public int subdivisionLevel()
| |
| subdivisionLevel | back to summary |
|---|---|
| public VkMicromapUsageEXT. Sets the specified value to the | |