Package org.lwjgl.vulkan
Class VkSwapchainDisplayNativeHdrCreateInfoAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSwapchainDisplayNativeHdrCreateInfoAMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSwapchainDisplayNativeHdrCreateInfoAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying display native HDR parameters of a newly created swapchain object.Description
If the
pNextchain ofVkSwapchainCreateInfoKHRdoes not contain this structure, the default value forlocalDimmingEnableisTRUE, meaning local dimming is initially enabled for the swapchain.Valid Usage (Implicit)
Valid Usage
- It is only valid to set
localDimmingEnabletoTRUEifVkDisplayNativeHdrSurfaceCapabilitiesAMD::localDimmingSupportis supported.
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.localDimmingEnable– specifies whether local dimming is enabled for the swapchain.
Layout
struct VkSwapchainDisplayNativeHdrCreateInfoAMD { VkStructureType sType; void const * pNext; VkBool32 localDimmingEnable; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSwapchainDisplayNativeHdrCreateInfoAMD.BufferAn array ofVkSwapchainDisplayNativeHdrCreateInfoAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLOCALDIMMINGENABLE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSwapchainDisplayNativeHdrCreateInfoAMD(java.nio.ByteBuffer container)Creates aVkSwapchainDisplayNativeHdrCreateInfoAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSwapchainDisplayNativeHdrCreateInfoAMDcalloc()Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated withmemCalloc.static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffercalloc(int capacity)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated withmemCalloc.static VkSwapchainDisplayNativeHdrCreateInfoAMDcallocStack()Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSwapchainDisplayNativeHdrCreateInfoAMD.BuffercallocStack(int capacity)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSwapchainDisplayNativeHdrCreateInfoAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSwapchainDisplayNativeHdrCreateInfoAMDcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSwapchainDisplayNativeHdrCreateInfoAMDcreate()Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated withBufferUtils.static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffercreate(int capacity)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated withBufferUtils.static VkSwapchainDisplayNativeHdrCreateInfoAMDcreate(long address)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance for the specified memory address.static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffercreate(long address, int capacity)Create aVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance at the specified memory.static VkSwapchainDisplayNativeHdrCreateInfoAMDcreateSafe(long address)static VkSwapchainDisplayNativeHdrCreateInfoAMD.BuffercreateSafe(long address, int capacity)booleanlocalDimmingEnable()Returns the value of thelocalDimmingEnablefield.VkSwapchainDisplayNativeHdrCreateInfoAMDlocalDimmingEnable(boolean value)Sets the specified value to thelocalDimmingEnablefield.static VkSwapchainDisplayNativeHdrCreateInfoAMDmalloc()Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated withmemAlloc.static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffermalloc(int capacity)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated withmemAlloc.static VkSwapchainDisplayNativeHdrCreateInfoAMDmallocStack()Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the thread-localMemoryStack.static VkSwapchainDisplayNativeHdrCreateInfoAMD.BuffermallocStack(int capacity)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStack.static VkSwapchainDisplayNativeHdrCreateInfoAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkSwapchainDisplayNativeHdrCreateInfoAMDmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the specifiedMemoryStack.static intnlocalDimmingEnable(long struct)Unsafe version oflocalDimmingEnable().static voidnlocalDimmingEnable(long struct, int value)Unsafe version oflocalDimmingEnable.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkSwapchainDisplayNativeHdrCreateInfoAMDpNext(long value)Sets the specified value to thepNextfield.VkSwapchainDisplayNativeHdrCreateInfoAMDset(int sType, long pNext, boolean localDimmingEnable)Initializes this struct with the specified values.VkSwapchainDisplayNativeHdrCreateInfoAMDset(VkSwapchainDisplayNativeHdrCreateInfoAMD src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkSwapchainDisplayNativeHdrCreateInfoAMDsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkSwapchainDisplayNativeHdrCreateInfoAMD
public VkSwapchainDisplayNativeHdrCreateInfoAMD(java.nio.ByteBuffer container)
Creates aVkSwapchainDisplayNativeHdrCreateInfoAMDinstance 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
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
localDimmingEnable
public boolean localDimmingEnable()
Returns the value of thelocalDimmingEnablefield.
-
sType
public VkSwapchainDisplayNativeHdrCreateInfoAMD sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkSwapchainDisplayNativeHdrCreateInfoAMD pNext(long value)
Sets the specified value to thepNextfield.
-
localDimmingEnable
public VkSwapchainDisplayNativeHdrCreateInfoAMD localDimmingEnable(boolean value)
Sets the specified value to thelocalDimmingEnablefield.
-
set
public VkSwapchainDisplayNativeHdrCreateInfoAMD set(int sType, long pNext, boolean localDimmingEnable)
Initializes this struct with the specified values.
-
set
public VkSwapchainDisplayNativeHdrCreateInfoAMD set(VkSwapchainDisplayNativeHdrCreateInfoAMD src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSwapchainDisplayNativeHdrCreateInfoAMD malloc()
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSwapchainDisplayNativeHdrCreateInfoAMD calloc()
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSwapchainDisplayNativeHdrCreateInfoAMD create()
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated withBufferUtils.
-
create
public static VkSwapchainDisplayNativeHdrCreateInfoAMD create(long address)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance for the specified memory address.
-
createSafe
@Nullable public static VkSwapchainDisplayNativeHdrCreateInfoAMD createSafe(long address)
-
malloc
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer malloc(int capacity)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer calloc(int capacity)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer create(int capacity)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer create(long address, int capacity)
Create aVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD mallocStack()
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD callocStack()
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer mallocStack(int capacity)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer callocStack(int capacity)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkSwapchainDisplayNativeHdrCreateInfoAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainDisplayNativeHdrCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nlocalDimmingEnable
public static int nlocalDimmingEnable(long struct)
Unsafe version oflocalDimmingEnable().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nlocalDimmingEnable
public static void nlocalDimmingEnable(long struct, int value)Unsafe version oflocalDimmingEnable.
-
-