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.
struct VkMicromapTriangleEXT {
uint32_t dataOffset;
uint16_t subdivisionLevel;
uint16_t format;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkMicromapTriangleEXT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DATAOFFSET
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 | VkMicromapTriangleEXT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkMicromapTriangleEXT | |
| public static VkMicromapTriangleEXT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkMicromapTriangleEXT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMicromapTriangleEXT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkMicromapTriangleEXT | 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 VkMicromapTriangleEXT | |
| public static VkMicromapTriangleEXT | |
| public static VkMicromapTriangleEXT. | create(int
the buffer capacity capacity)Returns a new |
| public static VkMicromapTriangleEXT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkMicromapTriangleEXT | |
| public static VkMicromapTriangleEXT. | |
| public int | |
| public VkMicromapTriangleEXT | |
| public short | |
| public VkMicromapTriangleEXT | |
| public static VkMicromapTriangleEXT | |
| public static VkMicromapTriangleEXT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkMicromapTriangleEXT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMicromapTriangleEXT. | 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 short | |
| public static void | |
| public static short | |
| public static void | |
| public VkMicromapTriangleEXT | set(int dataOffset, short subdivisionLevel, short format)
Initializes this struct with the specified values. |
| public VkMicromapTriangleEXT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public short | |
| public VkMicromapTriangleEXT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DATAOFFSET | back to summary |
|---|---|
| public static final int DATAOFFSET 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. | |
| VkMicromapTriangleEXT | back to summary |
|---|---|
| protected VkMicromapTriangleEXT(long address, ByteBuffer container) | |
| VkMicromapTriangleEXT | back to summary |
|---|---|
| public VkMicromapTriangleEXT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkMicromapTriangleEXT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkMicromapTriangleEXT create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkMicromapTriangleEXT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkMicromapTriangleEXT. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkMicromapTriangleEXT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkMicromapTriangleEXT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkMicromapTriangleEXT. Like
| |
| dataOffset | back to summary |
|---|---|
| public int dataOffset() the offset in bytes of the start of the data for this triangle. This is a byte aligned value.
| |
| dataOffset | back to summary |
|---|---|
| public VkMicromapTriangleEXT dataOffset(int value) Sets the specified value to the | |
| format | back to summary |
|---|---|
| public short format() the format of this triangle
| |
| format | back to summary |
|---|---|
| public VkMicromapTriangleEXT format(short value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMicromapTriangleEXT. Returns a new
| |
| ndataOffset | back to summary |
|---|---|
| public static int ndataOffset(long struct) Unsafe version of | |
| ndataOffset | back to summary |
|---|---|
| public static void ndataOffset(long struct, int value) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static short nformat(long struct) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static void nformat(long struct, short value) Unsafe version of | |
| nsubdivisionLevel | back to summary |
|---|---|
| public static short nsubdivisionLevel(long struct) Unsafe version of | |
| nsubdivisionLevel | back to summary |
|---|---|
| public static void nsubdivisionLevel(long struct, short value) Unsafe version of | |
| set | back to summary |
|---|---|
| public VkMicromapTriangleEXT set(int dataOffset, short subdivisionLevel, short format) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkMicromapTriangleEXT set(VkMicromapTriangleEXT 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 short subdivisionLevel() the subdivision level of this triangle
| |
| subdivisionLevel | back to summary |
|---|---|
| public VkMicromapTriangleEXT subdivisionLevel(short value) Sets the specified value to the | |
VkMicromapTriangleEXT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkMicromapTriangleEXT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkMicromapTriangleEXT. | |
| public short | |
| public VkMicromapTriangleEXT. | |
| protected VkMicromapTriangleEXT | |
| protected VkMicromapTriangleEXT. | |
| public short | |
| public VkMicromapTriangleEXT. | subdivisionLevel(short value)
Sets the specified value to the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkMicromapTriangleEXT 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) | |
| dataOffset | back to summary |
|---|---|
public int dataOffset()
| |
| dataOffset | back to summary |
|---|---|
| public VkMicromapTriangleEXT. Sets the specified value to the | |
| format | back to summary |
|---|---|
public short format()
| |
| format | back to summary |
|---|---|
| public VkMicromapTriangleEXT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkMicromapTriangleEXT getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected VkMicromapTriangleEXT. Implements abstract org.
| |
| subdivisionLevel | back to summary |
|---|---|
public short subdivisionLevel()
| |
| subdivisionLevel | back to summary |
|---|---|
| public VkMicromapTriangleEXT. Sets the specified value to the | |