Class VkViewportSwizzleNV.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkViewportSwizzleNV
overrungl.vulkan.nv.struct.VkViewportSwizzleNV.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkViewportSwizzleNV
A buffer of
VkViewportSwizzleNV
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.nv.struct.VkViewportSwizzleNV
VkViewportSwizzleNV.Buffer
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkViewportSwizzleNV.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkViewportSwizzleNV
.asSlice
(long index, long count) Creates a slice ofVkViewportSwizzleNV
.long
Estimates the element count of this group type buffer.int
wAt
(long index) Returnsw
at the given index.wAt
(long index, int value) Setsw
with the given value at the given index.int
xAt
(long index) Returnsx
at the given index.xAt
(long index, int value) Setsx
with the given value at the given index.int
yAt
(long index) Returnsy
at the given index.yAt
(long index, int value) Setsy
with the given value at the given index.int
zAt
(long index) Returnsz
at the given index.zAt
(long index, int value) Setsz
with the given value at the given index.Methods inherited from class overrungl.vulkan.nv.struct.VkViewportSwizzleNV
alloc, alloc, asBuffer, copyFrom, of, ofNative, ofNative, w, w, w, w, x, x, x, x, y, y, y, y, z, z, z, z
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkViewportSwizzleNV.Buffer
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count
-
-
Method Details
-
estimateCount
public long estimateCount()Description copied from class:GroupType
Estimates the element count of this group type buffer.- Overrides:
estimateCount
in classGroupType
- Returns:
- the estimated element count of the group type buffer
-
asSlice
Creates a slice ofVkViewportSwizzleNV
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkViewportSwizzleNV
-
asSlice
Creates a slice ofVkViewportSwizzleNV
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkViewportSwizzleNV
-
xAt
public int xAt(long index) Returnsx
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
x
at the given index
-
xAt
Setsx
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
yAt
public int yAt(long index) Returnsy
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
y
at the given index
-
yAt
Setsy
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
zAt
public int zAt(long index) Returnsz
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
z
at the given index
-
zAt
Setsz
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
wAt
public int wAt(long index) Returnsw
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
w
at the given index
-
wAt
Setsw
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-