Package org.lwjgl.vulkan
Class VkDisplaySurfaceCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplaySurfaceCreateInfoKHR
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDisplaySurfaceCreateInfoKHR extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how a display surface should be created.
Valid Usage
sTypemust beSTRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHRpNextmust beNULLflagsmust be 0displayModemust be a validVkDisplayModeKHRhandletransformmust be a validVkSurfaceTransformFlagBitsKHRvaluealphaModemust be a validVkDisplayPlaneAlphaFlagBitsKHRvalueplaneIndexmust be less than the number of display planes supported by the device as determined by callingGetPhysicalDeviceDisplayPlanePropertiesKHR- If the
planeReorderPossiblemember of theVkDisplayPropertiesKHRstructure returned byGetPhysicalDeviceDisplayPropertiesKHRfor the display corresponding todisplayModeisTRUEthenplaneStackIndexmust be less than the number of display planes supported by the device as determined by callingGetPhysicalDeviceDisplayPlanePropertiesKHR; otherwiseplaneStackIndexmust equal thecurrentStackIndexmember ofVkDisplayPlanePropertiesKHRreturned byGetPhysicalDeviceDisplayPlanePropertiesKHRfor the display plane corresponding todisplayMode - If
alphaModeisDISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRthenglobalAlphamust be between 0 and 1, inclusive alphaModemust be 0 or one of the bits present in thesupportedAlphamember ofVkDisplayPlaneCapabilitiesKHRreturned byGetDisplayPlaneCapabilitiesKHRfor the display plane corresponding todisplayMode- The
widthandheightmembers ofimageExtentmust be less than themaxImageDimensions2Dmember ofVkPhysicalDeviceLimits
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHRpNext– reserved for use by extensionsflags– reserved for future use, and must be zerodisplayMode– the mode to use when displaying this surfaceplaneIndex– the plane on which this surface appearsplaneStackIndex– the z-order of the planetransform– the transform to apply to the images as part of the scannout operation. One of:globalAlpha– the global alpha value. This value is ignored ifalphaModeis notDISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR.alphaMode– the type of alpha blending to use. One of:DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRDISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRDISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRimageExtent– the size of the presentable images to use with the surface
Layout
struct VkDisplaySurfaceCreateInfoKHR { VkStructureType sType; const void * pNext; VkDisplaySurfaceCreateFlagsKHR flags; VkDisplayModeKHR displayMode; uint32_t planeIndex; uint32_t planeStackIndex; VkSurfaceTransformFlagBitsKHR transform; float globalAlpha; VkDisplayPlaneAlphaFlagBitsKHR alphaMode;VkExtent2DimageExtent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDisplaySurfaceCreateInfoKHR.BufferAn array ofVkDisplaySurfaceCreateInfoKHRstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkDisplaySurfaceCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkDisplaySurfaceCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intalphaMode()Returns the value of thealphaModefield.VkDisplaySurfaceCreateInfoKHRalphaMode(int value)Sets the specified value to thealphaModefield.static VkDisplaySurfaceCreateInfoKHRcalloc()Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated withmemCalloc.static VkDisplaySurfaceCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkDisplaySurfaceCreateInfoKHRcallocStack()Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplaySurfaceCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplaySurfaceCreateInfoKHR.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplaySurfaceCreateInfoKHRcallocStack(MemoryStack stack)Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplaySurfaceCreateInfoKHRcreate()Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated withBufferUtils.static VkDisplaySurfaceCreateInfoKHR.Buffercreate(int capacity)Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkDisplaySurfaceCreateInfoKHRcreate(long address)Returns a newVkDisplaySurfaceCreateInfoKHRinstance for the specified memory address ornullif the address isNULL.static VkDisplaySurfaceCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkDisplaySurfaceCreateInfoKHR.Bufferinstance at the specified memory.longdisplayMode()Returns the value of thedisplayModefield.VkDisplaySurfaceCreateInfoKHRdisplayMode(long value)Sets the specified value to thedisplayModefield.intflags()Returns the value of theflagsfield.VkDisplaySurfaceCreateInfoKHRflags(int value)Sets the specified value to theflagsfield.floatglobalAlpha()Returns the value of theglobalAlphafield.VkDisplaySurfaceCreateInfoKHRglobalAlpha(float value)Sets the specified value to theglobalAlphafield.VkExtent2DimageExtent()Returns aVkExtent2Dview of theimageExtentfield.VkDisplaySurfaceCreateInfoKHRimageExtent(VkExtent2D value)Copies the specifiedVkExtent2Dto theimageExtentfield.static VkDisplaySurfaceCreateInfoKHRmalloc()Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated withmemAlloc.static VkDisplaySurfaceCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkDisplaySurfaceCreateInfoKHRmallocStack()Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkDisplaySurfaceCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDisplaySurfaceCreateInfoKHR.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplaySurfaceCreateInfoKHRmallocStack(MemoryStack stack)Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.VkDisplaySurfaceCreateInfoKHRnset(long struct)Unsafe version ofset.intplaneIndex()Returns the value of theplaneIndexfield.VkDisplaySurfaceCreateInfoKHRplaneIndex(int value)Sets the specified value to theplaneIndexfield.intplaneStackIndex()Returns the value of theplaneStackIndexfield.VkDisplaySurfaceCreateInfoKHRplaneStackIndex(int value)Sets the specified value to theplaneStackIndexfield.longpNext()Returns the value of thepNextfield.VkDisplaySurfaceCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkDisplaySurfaceCreateInfoKHRset(int sType, long pNext, int flags, long displayMode, int planeIndex, int planeStackIndex, int transform, float globalAlpha, int alphaMode, VkExtent2D imageExtent)Initializes this struct with the specified values.VkDisplaySurfaceCreateInfoKHRset(VkDisplaySurfaceCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkDisplaySurfaceCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.inttransform()Returns the value of thetransformfield.VkDisplaySurfaceCreateInfoKHRtransform(int value)Sets the specified value to thetransformfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDisplaySurfaceCreateInfoKHR
public VkDisplaySurfaceCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkDisplaySurfaceCreateInfoKHRinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
displayMode
public long displayMode()
Returns the value of thedisplayModefield.
-
planeIndex
public int planeIndex()
Returns the value of theplaneIndexfield.
-
planeStackIndex
public int planeStackIndex()
Returns the value of theplaneStackIndexfield.
-
transform
public int transform()
Returns the value of thetransformfield.
-
globalAlpha
public float globalAlpha()
Returns the value of theglobalAlphafield.
-
alphaMode
public int alphaMode()
Returns the value of thealphaModefield.
-
imageExtent
public VkExtent2D imageExtent()
Returns aVkExtent2Dview of theimageExtentfield.
-
sType
public VkDisplaySurfaceCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDisplaySurfaceCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkDisplaySurfaceCreateInfoKHR flags(int value)
Sets the specified value to theflagsfield.
-
displayMode
public VkDisplaySurfaceCreateInfoKHR displayMode(long value)
Sets the specified value to thedisplayModefield.
-
planeIndex
public VkDisplaySurfaceCreateInfoKHR planeIndex(int value)
Sets the specified value to theplaneIndexfield.
-
planeStackIndex
public VkDisplaySurfaceCreateInfoKHR planeStackIndex(int value)
Sets the specified value to theplaneStackIndexfield.
-
transform
public VkDisplaySurfaceCreateInfoKHR transform(int value)
Sets the specified value to thetransformfield.
-
globalAlpha
public VkDisplaySurfaceCreateInfoKHR globalAlpha(float value)
Sets the specified value to theglobalAlphafield.
-
alphaMode
public VkDisplaySurfaceCreateInfoKHR alphaMode(int value)
Sets the specified value to thealphaModefield.
-
imageExtent
public VkDisplaySurfaceCreateInfoKHR imageExtent(VkExtent2D value)
Copies the specifiedVkExtent2Dto theimageExtentfield.
-
set
public VkDisplaySurfaceCreateInfoKHR set(int sType, long pNext, int flags, long displayMode, int planeIndex, int planeStackIndex, int transform, float globalAlpha, int alphaMode, VkExtent2D imageExtent)
Initializes this struct with the specified values.
-
nset
public VkDisplaySurfaceCreateInfoKHR nset(long struct)
Unsafe version ofset.
-
set
public VkDisplaySurfaceCreateInfoKHR set(VkDisplaySurfaceCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDisplaySurfaceCreateInfoKHR malloc()
Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDisplaySurfaceCreateInfoKHR calloc()
Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDisplaySurfaceCreateInfoKHR create()
Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkDisplaySurfaceCreateInfoKHR create(long address)
Returns a newVkDisplaySurfaceCreateInfoKHRinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDisplaySurfaceCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDisplaySurfaceCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplaySurfaceCreateInfoKHR.Buffer create(int capacity)
Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplaySurfaceCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkDisplaySurfaceCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDisplaySurfaceCreateInfoKHR mallocStack()
Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDisplaySurfaceCreateInfoKHR callocStack()
Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDisplaySurfaceCreateInfoKHR mallocStack(MemoryStack stack)
Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplaySurfaceCreateInfoKHR callocStack(MemoryStack stack)
Returns a newVkDisplaySurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDisplaySurfaceCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDisplaySurfaceCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDisplaySurfaceCreateInfoKHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDisplaySurfaceCreateInfoKHR.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDisplaySurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-