Package org.lwjgl.vulkan
Class VkSwapchainCreateInfoKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkSwapchainCreateInfoKHR,VkSwapchainCreateInfoKHR.Buffer>
-
- org.lwjgl.vulkan.VkSwapchainCreateInfoKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<VkSwapchainCreateInfoKHR>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- VkSwapchainCreateInfoKHR
public static class VkSwapchainCreateInfoKHR.Buffer extends org.lwjgl.system.StructBuffer<VkSwapchainCreateInfoKHR,VkSwapchainCreateInfoKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkSwapchainCreateInfoKHR
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
clipped()
Returns the value of theclipped
field.VkSwapchainCreateInfoKHR.Buffer
clipped(boolean value)
Sets the specified value to theclipped
field.int
compositeAlpha()
Returns the value of thecompositeAlpha
field.VkSwapchainCreateInfoKHR.Buffer
compositeAlpha(int value)
Sets the specified value to thecompositeAlpha
field.int
flags()
Returns the value of theflags
field.VkSwapchainCreateInfoKHR.Buffer
flags(int value)
Sets the specified value to theflags
field.int
imageArrayLayers()
Returns the value of theimageArrayLayers
field.VkSwapchainCreateInfoKHR.Buffer
imageArrayLayers(int value)
Sets the specified value to theimageArrayLayers
field.int
imageColorSpace()
Returns the value of theimageColorSpace
field.VkSwapchainCreateInfoKHR.Buffer
imageColorSpace(int value)
Sets the specified value to theimageColorSpace
field.VkExtent2D
imageExtent()
Returns aVkExtent2D
view of theimageExtent
field.VkSwapchainCreateInfoKHR.Buffer
imageExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theimageExtent
field to the specifiedConsumer
.VkSwapchainCreateInfoKHR.Buffer
imageExtent(VkExtent2D value)
Copies the specifiedVkExtent2D
to theimageExtent
field.int
imageFormat()
Returns the value of theimageFormat
field.VkSwapchainCreateInfoKHR.Buffer
imageFormat(int value)
Sets the specified value to theimageFormat
field.int
imageSharingMode()
Returns the value of theimageSharingMode
field.VkSwapchainCreateInfoKHR.Buffer
imageSharingMode(int value)
Sets the specified value to theimageSharingMode
field.int
imageUsage()
Returns the value of theimageUsage
field.VkSwapchainCreateInfoKHR.Buffer
imageUsage(int value)
Sets the specified value to theimageUsage
field.int
minImageCount()
Returns the value of theminImageCount
field.VkSwapchainCreateInfoKHR.Buffer
minImageCount(int value)
Sets the specified value to theminImageCount
field.long
oldSwapchain()
Returns the value of theoldSwapchain
field.VkSwapchainCreateInfoKHR.Buffer
oldSwapchain(long value)
Sets the specified value to theoldSwapchain
field.long
pNext()
Returns the value of thepNext
field.VkSwapchainCreateInfoKHR.Buffer
pNext(long value)
Sets the specified value to thepNext
field.java.nio.IntBuffer
pQueueFamilyIndices()
Returns aIntBuffer
view of the data pointed to by thepQueueFamilyIndices
field.VkSwapchainCreateInfoKHR.Buffer
pQueueFamilyIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepQueueFamilyIndices
field.int
presentMode()
Returns the value of thepresentMode
field.VkSwapchainCreateInfoKHR.Buffer
presentMode(int value)
Sets the specified value to thepresentMode
field.int
preTransform()
Returns the value of thepreTransform
field.VkSwapchainCreateInfoKHR.Buffer
preTransform(int value)
Sets the specified value to thepreTransform
field.int
queueFamilyIndexCount()
Returns the value of thequeueFamilyIndexCount
field.int
sType()
Returns the value of thesType
field.VkSwapchainCreateInfoKHR.Buffer
sType(int value)
Sets the specified value to thesType
field.long
surface()
Returns the value of thesurface
field.VkSwapchainCreateInfoKHR.Buffer
surface(long value)
Sets the specified value to thesurface
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkSwapchainCreateInfoKHR.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 byVkSwapchainCreateInfoKHR.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
surface
public long surface()
Returns the value of thesurface
field.
-
minImageCount
public int minImageCount()
Returns the value of theminImageCount
field.
-
imageFormat
public int imageFormat()
Returns the value of theimageFormat
field.
-
imageColorSpace
public int imageColorSpace()
Returns the value of theimageColorSpace
field.
-
imageExtent
public VkExtent2D imageExtent()
Returns aVkExtent2D
view of theimageExtent
field.
-
imageArrayLayers
public int imageArrayLayers()
Returns the value of theimageArrayLayers
field.
-
imageUsage
public int imageUsage()
Returns the value of theimageUsage
field.
-
imageSharingMode
public int imageSharingMode()
Returns the value of theimageSharingMode
field.
-
queueFamilyIndexCount
public int queueFamilyIndexCount()
Returns the value of thequeueFamilyIndexCount
field.
-
pQueueFamilyIndices
@Nullable public java.nio.IntBuffer pQueueFamilyIndices()
Returns aIntBuffer
view of the data pointed to by thepQueueFamilyIndices
field.
-
preTransform
public int preTransform()
Returns the value of thepreTransform
field.
-
compositeAlpha
public int compositeAlpha()
Returns the value of thecompositeAlpha
field.
-
presentMode
public int presentMode()
Returns the value of thepresentMode
field.
-
clipped
public boolean clipped()
Returns the value of theclipped
field.
-
oldSwapchain
public long oldSwapchain()
Returns the value of theoldSwapchain
field.
-
sType
public VkSwapchainCreateInfoKHR.Buffer sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSwapchainCreateInfoKHR.Buffer pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkSwapchainCreateInfoKHR.Buffer flags(int value)
Sets the specified value to theflags
field.
-
surface
public VkSwapchainCreateInfoKHR.Buffer surface(long value)
Sets the specified value to thesurface
field.
-
minImageCount
public VkSwapchainCreateInfoKHR.Buffer minImageCount(int value)
Sets the specified value to theminImageCount
field.
-
imageFormat
public VkSwapchainCreateInfoKHR.Buffer imageFormat(int value)
Sets the specified value to theimageFormat
field.
-
imageColorSpace
public VkSwapchainCreateInfoKHR.Buffer imageColorSpace(int value)
Sets the specified value to theimageColorSpace
field.
-
imageExtent
public VkSwapchainCreateInfoKHR.Buffer imageExtent(VkExtent2D value)
Copies the specifiedVkExtent2D
to theimageExtent
field.
-
imageExtent
public VkSwapchainCreateInfoKHR.Buffer imageExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theimageExtent
field to the specifiedConsumer
.
-
imageArrayLayers
public VkSwapchainCreateInfoKHR.Buffer imageArrayLayers(int value)
Sets the specified value to theimageArrayLayers
field.
-
imageUsage
public VkSwapchainCreateInfoKHR.Buffer imageUsage(int value)
Sets the specified value to theimageUsage
field.
-
imageSharingMode
public VkSwapchainCreateInfoKHR.Buffer imageSharingMode(int value)
Sets the specified value to theimageSharingMode
field.
-
pQueueFamilyIndices
public VkSwapchainCreateInfoKHR.Buffer pQueueFamilyIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepQueueFamilyIndices
field.
-
preTransform
public VkSwapchainCreateInfoKHR.Buffer preTransform(int value)
Sets the specified value to thepreTransform
field.
-
compositeAlpha
public VkSwapchainCreateInfoKHR.Buffer compositeAlpha(int value)
Sets the specified value to thecompositeAlpha
field.
-
presentMode
public VkSwapchainCreateInfoKHR.Buffer presentMode(int value)
Sets the specified value to thepresentMode
field.
-
clipped
public VkSwapchainCreateInfoKHR.Buffer clipped(boolean value)
Sets the specified value to theclipped
field.
-
oldSwapchain
public VkSwapchainCreateInfoKHR.Buffer oldSwapchain(long value)
Sets the specified value to theoldSwapchain
field.
-
-