Package org.lwjgl.vulkan
Class VkSurfaceFormatKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSurfaceFormatKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSurfaceFormatKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing a supported swapchain format-color space pair.See Also
VkSurfaceFormat2KHR,GetPhysicalDeviceSurfaceFormatsKHRLayout
struct VkSurfaceFormatKHR { VkFormatformat(); VkColorSpaceKHRcolorSpace(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSurfaceFormatKHR.BufferAn array ofVkSurfaceFormatKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORSPACE
FORMATThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkSurfaceFormatKHR(java.nio.ByteBuffer container)Creates aVkSurfaceFormatKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkSurfaceFormatKHRcalloc()Returns a newVkSurfaceFormatKHRinstance allocated withmemCalloc.static VkSurfaceFormatKHR.Buffercalloc(int capacity)Returns a newVkSurfaceFormatKHR.Bufferinstance allocated withmemCalloc.static VkSurfaceFormatKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceFormatKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSurfaceFormatKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceFormatKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSurfaceFormatKHRcallocStack()Deprecated.static VkSurfaceFormatKHR.BuffercallocStack(int capacity)Deprecated.static VkSurfaceFormatKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSurfaceFormatKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcolorSpace()a presentationVkColorSpaceKHRthat is compatible with the surface.static VkSurfaceFormatKHRcreate()Returns a newVkSurfaceFormatKHRinstance allocated withBufferUtils.static VkSurfaceFormatKHR.Buffercreate(int capacity)Returns a newVkSurfaceFormatKHR.Bufferinstance allocated withBufferUtils.static VkSurfaceFormatKHRcreate(long address)Returns a newVkSurfaceFormatKHRinstance for the specified memory address.static VkSurfaceFormatKHR.Buffercreate(long address, int capacity)Create aVkSurfaceFormatKHR.Bufferinstance at the specified memory.static VkSurfaceFormatKHRcreateSafe(long address)static VkSurfaceFormatKHR.BuffercreateSafe(long address, int capacity)intformat()aVkFormatthat is compatible with the specified surface.static VkSurfaceFormatKHRmalloc()Returns a newVkSurfaceFormatKHRinstance allocated withmemAlloc.static VkSurfaceFormatKHR.Buffermalloc(int capacity)Returns a newVkSurfaceFormatKHR.Bufferinstance allocated withmemAlloc.static VkSurfaceFormatKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceFormatKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSurfaceFormatKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSurfaceFormatKHRinstance allocated on the specifiedMemoryStack.static VkSurfaceFormatKHRmallocStack()Deprecated.static VkSurfaceFormatKHR.BuffermallocStack(int capacity)Deprecated.static VkSurfaceFormatKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSurfaceFormatKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intncolorSpace(long struct)Unsafe version ofcolorSpace().static intnformat(long struct)Unsafe version offormat().intsizeof()
-
-
-
Constructor Detail
-
VkSurfaceFormatKHR
public VkSurfaceFormatKHR(java.nio.ByteBuffer container)
Creates aVkSurfaceFormatKHRinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
format
public int format()
aVkFormatthat is compatible with the specified surface.
-
colorSpace
public int colorSpace()
a presentationVkColorSpaceKHRthat is compatible with the surface.
-
malloc
public static VkSurfaceFormatKHR malloc()
Returns a newVkSurfaceFormatKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSurfaceFormatKHR calloc()
Returns a newVkSurfaceFormatKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSurfaceFormatKHR create()
Returns a newVkSurfaceFormatKHRinstance allocated withBufferUtils.
-
create
public static VkSurfaceFormatKHR create(long address)
Returns a newVkSurfaceFormatKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkSurfaceFormatKHR createSafe(long address)
-
malloc
public static VkSurfaceFormatKHR.Buffer malloc(int capacity)
Returns a newVkSurfaceFormatKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSurfaceFormatKHR.Buffer calloc(int capacity)
Returns a newVkSurfaceFormatKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSurfaceFormatKHR.Buffer create(int capacity)
Returns a newVkSurfaceFormatKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSurfaceFormatKHR.Buffer create(long address, int capacity)
Create aVkSurfaceFormatKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSurfaceFormatKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkSurfaceFormatKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSurfaceFormatKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSurfaceFormatKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSurfaceFormatKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSurfaceFormatKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSurfaceFormatKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSurfaceFormatKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSurfaceFormatKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkSurfaceFormatKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFormatKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSurfaceFormatKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFormatKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSurfaceFormatKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFormatKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSurfaceFormatKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFormatKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
ncolorSpace
public static int ncolorSpace(long struct)
Unsafe version ofcolorSpace().
-
-