Creating a display surface must not modify the state of the displays, planes, or other resources it names. For example, it must not apply the specified mode to be set on the associated display. Application of display configuration occurs as a side effect of presenting to a display surface.
planeIndex must be less than the number of display planes supported by the device as determined by calling vkGetPhysicalDeviceDisplayPlanePropertiesKHRplaneReorderPossible member of the VkDisplayPropertiesKHR structure returned by vkGetPhysicalDeviceDisplayPropertiesKHR for the display corresponding to displayMode is TRUE then planeStackIndex must be less than the number of display planes supported by the device as determined by calling vkGetPhysicalDeviceDisplayPlanePropertiesKHR; otherwise planeStackIndex must equal the currentStackIndex member of VkDisplayPlanePropertiesKHR returned by vkGetPhysicalDeviceDisplayPlanePropertiesKHR for the display plane corresponding to displayModealphaMode is DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR then globalAlpha must be between 0 and 1, inclusivealphaMode must be one of the bits present in the supportedAlpha member of VkDisplayPlaneCapabilitiesKHR for the display plane corresponding to displayModetransform must be one of the bits present in the supportedTransforms member of VkDisplayPropertiesKHR for the display corresponding to displayModewidth and height members of imageExtent must be less than or equal to VkPhysicalDeviceLimits::maxImageDimension2DsType must be STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHRpNext must be NULLflags must be 0displayMode must be a valid VkDisplayModeKHR handletransform must be a valid VkSurfaceTransformFlagBitsKHR valuealphaMode must be a valid VkDisplayPlaneAlphaFlagBitsKHR valueVkExtent2D, CreateDisplayPlaneSurfaceKHR
struct VkDisplaySurfaceCreateInfoKHR {
VkStructureType sType;
void const * pNext;
VkDisplaySurfaceCreateFlagsKHR flags;
VkDisplayModeKHR displayMode;
uint32_t planeIndex;
uint32_t planeStackIndex;
VkSurfaceTransformFlagBitsKHR transform;
float globalAlpha;
VkDisplayPlaneAlphaFlagBitsKHR alphaMode;
VkExtent2D imageExtent;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkDisplaySurfaceCreateInfoKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALPHAMODE
The struct member offsets. |
| public static final int | DISPLAYMODE
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | GLOBALALPHA
The struct member offsets. |
| public static final int | IMAGEEXTENT
The struct member offsets. |
| public static final int | PLANEINDEX
The struct member offsets. |
| public static final int | PLANESTACKINDEX
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | TRANSFORM
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkDisplaySurfaceCreateInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR. | |
| public static VkDisplaySurfaceCreateInfoKHR. | |
| protected VkDisplaySurfaceCreateInfoKHR | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR | create(long address)
Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR. | |
| public long | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public int | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public float | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public VkExtent2D | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR | |
| public static VkDisplaySurfaceCreateInfoKHR. | |
| public static VkDisplaySurfaceCreateInfoKHR. | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static VkExtent2D | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public int | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public int | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public long | |
| public VkDisplaySurfaceCreateInfoKHR | |
| 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. |
| public VkDisplaySurfaceCreateInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public VkDisplaySurfaceCreateInfoKHR | |
| public int | transform()
a |
| public VkDisplaySurfaceCreateInfoKHR |