public static class VkClearValue.Buffer extends org.lwjgl.system.StructBuffer<VkClearValue,VkClearValue.Buffer> implements org.lwjgl.system.NativeResource
VkClearValue structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
VkClearValue.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
VkClearColorValue |
color()
Returns a
VkClearColorValue view of the color field. |
VkClearValue.Buffer |
color(java.util.function.Consumer<VkClearColorValue> consumer)
Passes the
color field to the specified Consumer. |
VkClearValue.Buffer |
color(VkClearColorValue value)
Copies the specified
VkClearColorValue to the color field. |
VkClearDepthStencilValue |
depthStencil()
Returns a
VkClearDepthStencilValue view of the depthStencil field. |
VkClearValue.Buffer |
depthStencil(java.util.function.Consumer<VkClearDepthStencilValue> consumer)
Passes the
depthStencil field to the specified Consumer. |
VkClearValue.Buffer |
depthStencil(VkClearDepthStencilValue value)
Copies the specified
VkClearDepthStencilValue to the depthStencil field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
VkClearValue.Buffer instance backed by the specified container.
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 VkClearValue.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public VkClearColorValue color()
VkClearColorValue view of the color field.public VkClearDepthStencilValue depthStencil()
VkClearDepthStencilValue view of the depthStencil field.public VkClearValue.Buffer color(VkClearColorValue value)
VkClearColorValue to the color field.public VkClearValue.Buffer color(java.util.function.Consumer<VkClearColorValue> consumer)
color field to the specified Consumer.public VkClearValue.Buffer depthStencil(VkClearDepthStencilValue value)
VkClearDepthStencilValue to the depthStencil field.public VkClearValue.Buffer depthStencil(java.util.function.Consumer<VkClearDepthStencilValue> consumer)
depthStencil field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.