Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkSurfacePresentScalingCapabilitiesEXT

extends Struct<VkSurfacePresentScalingCapabilitiesEXT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure describing the presentation scaling capabilities of the surface.
Description

Before creating a swapchain whose scaling mode can be specified through the use of VkSwapchainPresentScalingCreateInfoEXT, obtain the set of supported scaling modes by including a VkSurfacePresentModeEXT structure in the pNext chain of VkPhysicalDeviceSurfaceInfo2KHR when calling GetPhysicalDeviceSurfaceCapabilities2KHR. The implementation must return the same values in VkSurfacePresentScalingCapabilitiesEXT for any of the compatible present modes as obtained through VkSurfacePresentModeCompatibilityEXT.

Valid Usage (Implicit)
See Also

VkExtent2D

Layout


struct VkSurfacePresentScalingCapabilitiesEXT {
    VkStructureType sType;
    void * pNext;
    VkPresentScalingFlagsEXT supportedPresentScaling;
    VkPresentGravityFlagsEXT supportedPresentGravityX;
    VkPresentGravityFlagsEXT supportedPresentGravityY;
    VkExtent2D minScaledImageExtent;
    VkExtent2D maxScaledImageExtent;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MAXSCALEDIMAGEEXTENT

The struct member offsets.

public static final int
MINSCALEDIMAGEEXTENT

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
SUPPORTEDPRESENTGRAVITYX

The struct member offsets.

public static final int
SUPPORTEDPRESENTGRAVITYY

The struct member offsets.

public static final int
SUPPORTEDPRESENTSCALING

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkSurfacePresentScalingCapabilitiesEXT(ByteBuffer container)

Creates a VkSurfacePresentScalingCapabilitiesEXT instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkSurfacePresentScalingCapabilitiesEXT
calloc()

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated with memCalloc.

public static VkSurfacePresentScalingCapabilitiesEXT.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated with memCalloc.

public static VkSurfacePresentScalingCapabilitiesEXT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkSurfacePresentScalingCapabilitiesEXT.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkSurfacePresentScalingCapabilitiesEXT
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkSurfacePresentScalingCapabilitiesEXT
create()

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated with BufferUtils.

public static VkSurfacePresentScalingCapabilitiesEXT
create(long address)

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance for the specified memory address.

public static VkSurfacePresentScalingCapabilitiesEXT.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated with BufferUtils.

public static VkSurfacePresentScalingCapabilitiesEXT.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkSurfacePresentScalingCapabilitiesEXT.Buffer instance at the specified memory.

public static VkSurfacePresentScalingCapabilitiesEXT
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkSurfacePresentScalingCapabilitiesEXT.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static VkSurfacePresentScalingCapabilitiesEXT
malloc()

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated with memAlloc.

public static VkSurfacePresentScalingCapabilitiesEXT.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated with memAlloc.

public static VkSurfacePresentScalingCapabilitiesEXT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated on the specified MemoryStack.

public static VkSurfacePresentScalingCapabilitiesEXT.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated on the specified MemoryStack.

public VkExtent2D
maxScaledImageExtent()

contains the largest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in supportedPresentScaling is used, or the special value described above for minScaledImageExtent.

public VkSurfacePresentScalingCapabilitiesEXT
maxScaledImageExtent(VkExtent2D value)

Copies the specified VkExtent2D to the maxScaledImageExtent field.

public VkSurfacePresentScalingCapabilitiesEXT
maxScaledImageExtent(Consumer<VkExtent2D> consumer)

Passes the maxScaledImageExtent field to the specified Consumer.

public VkExtent2D
minScaledImageExtent()

contains the smallest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in supportedPresentScaling is used, or the special value (0xFFFFFFFF, 0xFFFFFFFF) indicating that the surface size will be determined by the extent of a swapchain targeting the surface.

public VkSurfacePresentScalingCapabilitiesEXT
minScaledImageExtent(VkExtent2D value)

Copies the specified VkExtent2D to the minScaledImageExtent field.

public VkSurfacePresentScalingCapabilitiesEXT
minScaledImageExtent(Consumer<VkExtent2D> consumer)

Passes the minScaledImageExtent field to the specified Consumer.

public static VkExtent2D
nmaxScaledImageExtent(long struct)

Unsafe version of maxScaledImageExtent.

public static void
nmaxScaledImageExtent(long struct, VkExtent2D value)

Unsafe version of maxScaledImageExtent.

public static VkExtent2D
nminScaledImageExtent(long struct)

Unsafe version of minScaledImageExtent.

public static void
nminScaledImageExtent(long struct, VkExtent2D value)

Unsafe version of minScaledImageExtent.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
nsupportedPresentGravityX(long struct)

Unsafe version of supportedPresentGravityX.

public static void
nsupportedPresentGravityX(long struct, int value)

Unsafe version of supportedPresentGravityX.

public static int
nsupportedPresentGravityY(long struct)

Unsafe version of supportedPresentGravityY.

public static void
nsupportedPresentGravityY(long struct, int value)

Unsafe version of supportedPresentGravityY.

public static int
nsupportedPresentScaling(long struct)

Unsafe version of supportedPresentScaling.

public static void
nsupportedPresentScaling(long struct, int value)

Unsafe version of supportedPresentScaling.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkSurfacePresentScalingCapabilitiesEXT
pNext(long value)

Sets the specified value to the pNext field.

public VkSurfacePresentScalingCapabilitiesEXT
set(int sType, long pNext, int supportedPresentScaling, int supportedPresentGravityX, int supportedPresentGravityY, VkExtent2D minScaledImageExtent, VkExtent2D maxScaledImageExtent)

Initializes this struct with the specified values.

public VkSurfacePresentScalingCapabilitiesEXT

Returns:

this struct
set
(VkSurfacePresentScalingCapabilitiesEXT
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkSurfacePresentScalingCapabilitiesEXT
sType(int value)

Sets the specified value to the sType field.

public VkSurfacePresentScalingCapabilitiesEXT
public int
supportedPresentGravityX()

a bitmask of VkPresentGravityFlagBitsEXT representing the X-axis pixel gravity supported by the surface, or 0 if Vulkan-defined pixel gravity is not supported for the X axis.

public VkSurfacePresentScalingCapabilitiesEXT
supportedPresentGravityX(int value)

Sets the specified value to the supportedPresentGravityX field.

public int
supportedPresentGravityY()

a bitmask of VkPresentGravityFlagBitsEXT representing the Y-axis pixel gravity supported by the surface, or 0 if Vulkan-defined pixel gravity is not supported for the Y axis.

public VkSurfacePresentScalingCapabilitiesEXT
supportedPresentGravityY(int value)

Sets the specified value to the supportedPresentGravityY field.

public int
supportedPresentScaling()

a bitmask of VkPresentScalingFlagBitsEXT representing the scaling methods supported by the surface, or 0 if application-defined scaling is not supported.

public VkSurfacePresentScalingCapabilitiesEXT
supportedPresentScaling(int value)

Sets the specified value to the supportedPresentScaling field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

MAXSCALEDIMAGEEXTENTback to summary
public static final int MAXSCALEDIMAGEEXTENT

The struct member offsets.

MINSCALEDIMAGEEXTENTback to summary
public static final int MINSCALEDIMAGEEXTENT

The struct member offsets.

PNEXTback to summary
public static final int PNEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STYPEback to summary
public static final int STYPE

The struct member offsets.

SUPPORTEDPRESENTGRAVITYXback to summary
public static final int SUPPORTEDPRESENTGRAVITYX

The struct member offsets.

SUPPORTEDPRESENTGRAVITYYback to summary
public static final int SUPPORTEDPRESENTGRAVITYY

The struct member offsets.

SUPPORTEDPRESENTSCALINGback to summary
public static final int SUPPORTEDPRESENTSCALING

The struct member offsets.

Constructor Detail

VkSurfacePresentScalingCapabilitiesEXTback to summary
protected VkSurfacePresentScalingCapabilitiesEXT(long address, ByteBuffer container)
VkSurfacePresentScalingCapabilitiesEXTback to summary
public VkSurfacePresentScalingCapabilitiesEXT(ByteBuffer container)

Creates a VkSurfacePresentScalingCapabilitiesEXT instance at the current position of the specified ByteBuffer container. 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

callocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT calloc()

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT.Buffer calloc(int capacity)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT calloc(MemoryStack stack)

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected VkSurfacePresentScalingCapabilitiesEXT create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkSurfacePresentScalingCapabilitiesEXT create()

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated with BufferUtils.

createback to summary
public static VkSurfacePresentScalingCapabilitiesEXT create(long address)

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance for the specified memory address.

createback to summary
public static VkSurfacePresentScalingCapabilitiesEXT.Buffer create(int capacity)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkSurfacePresentScalingCapabilitiesEXT.Buffer create(long address, int capacity)

Create a VkSurfacePresentScalingCapabilitiesEXT.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkSurfacePresentScalingCapabilitiesEXT createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkSurfacePresentScalingCapabilitiesEXT.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
mallocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT malloc()

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT.Buffer malloc(int capacity)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT malloc(MemoryStack stack)

Returns a new VkSurfacePresentScalingCapabilitiesEXT instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkSurfacePresentScalingCapabilitiesEXT.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

maxScaledImageExtentback to summary
public VkExtent2D maxScaledImageExtent()

contains the largest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in supportedPresentScaling is used, or the special value described above for minScaledImageExtent. The width and height of the extent will each be greater than or equal to the corresponding width and height of VkSurfaceCapabilitiesKHR::maxImageExtent.

maxScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT maxScaledImageExtent(VkExtent2D value)

Copies the specified VkExtent2D to the maxScaledImageExtent field.

maxScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT maxScaledImageExtent(Consumer<VkExtent2D> consumer)

Passes the maxScaledImageExtent field to the specified Consumer.

minScaledImageExtentback to summary
public VkExtent2D minScaledImageExtent()

contains the smallest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in supportedPresentScaling is used, or the special value (0xFFFFFFFF, 0xFFFFFFFF) indicating that the surface size will be determined by the extent of a swapchain targeting the surface. The width and height of the extent will each be smaller than or equal to the corresponding width and height of VkSurfaceCapabilitiesKHR::minImageExtent.

minScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT minScaledImageExtent(VkExtent2D value)

Copies the specified VkExtent2D to the minScaledImageExtent field.

minScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT minScaledImageExtent(Consumer<VkExtent2D> consumer)

Passes the minScaledImageExtent field to the specified Consumer.

nmaxScaledImageExtentback to summary
public static VkExtent2D nmaxScaledImageExtent(long struct)

Unsafe version of maxScaledImageExtent.

nmaxScaledImageExtentback to summary
public static void nmaxScaledImageExtent(long struct, VkExtent2D value)

Unsafe version of maxScaledImageExtent.

nminScaledImageExtentback to summary
public static VkExtent2D nminScaledImageExtent(long struct)

Unsafe version of minScaledImageExtent.

nminScaledImageExtentback to summary
public static void nminScaledImageExtent(long struct, VkExtent2D value)

Unsafe version of minScaledImageExtent.

npNextback to summary
public static long npNext(long struct)

Unsafe version of pNext.

npNextback to summary
public static void npNext(long struct, long value)

Unsafe version of pNext.

nsTypeback to summary
public static int nsType(long struct)

Unsafe version of sType.

nsTypeback to summary
public static void nsType(long struct, int value)

Unsafe version of sType.

nsupportedPresentGravityXback to summary
public static int nsupportedPresentGravityX(long struct)

Unsafe version of supportedPresentGravityX.

nsupportedPresentGravityXback to summary
public static void nsupportedPresentGravityX(long struct, int value)

Unsafe version of supportedPresentGravityX.

nsupportedPresentGravityYback to summary
public static int nsupportedPresentGravityY(long struct)

Unsafe version of supportedPresentGravityY.

nsupportedPresentGravityYback to summary
public static void nsupportedPresentGravityY(long struct, int value)

Unsafe version of supportedPresentGravityY.

nsupportedPresentScalingback to summary
public static int nsupportedPresentScaling(long struct)

Unsafe version of supportedPresentScaling.

nsupportedPresentScalingback to summary
public static void nsupportedPresentScaling(long struct, int value)

Unsafe version of supportedPresentScaling.

pNextback to summary
public long pNext()

NULL or a pointer to a structure extending this structure.

Annotations
@NativeType:void *
pNextback to summary
public VkSurfacePresentScalingCapabilitiesEXT pNext(long value)

Sets the specified value to the pNext field.

setback to summary
public VkSurfacePresentScalingCapabilitiesEXT set(int sType, long pNext, int supportedPresentScaling, int supportedPresentGravityX, int supportedPresentGravityY, VkExtent2D minScaledImageExtent, VkExtent2D maxScaledImageExtent)

Initializes this struct with the specified values.

setback to summary
public VkSurfacePresentScalingCapabilitiesEXT set(VkSurfacePresentScalingCapabilitiesEXT src)

Copies the specified struct data to this struct.

Parameters
src:VkSurfacePresentScalingCapabilitiesEXT

the source struct

Returns:VkSurfacePresentScalingCapabilitiesEXT

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
sTypeback to summary
public int sType()

a VkStructureType value identifying this structure.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkSurfacePresentScalingCapabilitiesEXT sType(int value)

Sets the specified value to the sType field.

sType$Defaultback to summary
public VkSurfacePresentScalingCapabilitiesEXT sType$Default()

Sets the STRUCTURE_TYPE_SURFACE_PRESENT_SCALING_CAPABILITIES_EXT value to the sType field.

supportedPresentGravityXback to summary
public int supportedPresentGravityX()

a bitmask of VkPresentGravityFlagBitsEXT representing the X-axis pixel gravity supported by the surface, or 0 if Vulkan-defined pixel gravity is not supported for the X axis.

Annotations
@NativeType:VkPresentGravityFlagsEXT
supportedPresentGravityXback to summary
public VkSurfacePresentScalingCapabilitiesEXT supportedPresentGravityX(int value)

Sets the specified value to the supportedPresentGravityX field.

supportedPresentGravityYback to summary
public int supportedPresentGravityY()

a bitmask of VkPresentGravityFlagBitsEXT representing the Y-axis pixel gravity supported by the surface, or 0 if Vulkan-defined pixel gravity is not supported for the Y axis.

Annotations
@NativeType:VkPresentGravityFlagsEXT
supportedPresentGravityYback to summary
public VkSurfacePresentScalingCapabilitiesEXT supportedPresentGravityY(int value)

Sets the specified value to the supportedPresentGravityY field.

supportedPresentScalingback to summary
public int supportedPresentScaling()

a bitmask of VkPresentScalingFlagBitsEXT representing the scaling methods supported by the surface, or 0 if application-defined scaling is not supported.

Annotations
@NativeType:VkPresentScalingFlagsEXT
supportedPresentScalingback to summary
public VkSurfacePresentScalingCapabilitiesEXT supportedPresentScaling(int value)

Sets the specified value to the supportedPresentScaling field.

org.lwjgl.vulkan back to summary

public Class VkSurfacePresentScalingCapabilitiesEXT.Buffer

extends StructBuffer<VkSurfacePresentScalingCapabilitiesEXT, VkSurfacePresentScalingCapabilitiesEXT.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkSurfacePresentScalingCapabilitiesEXT structs.

Field Summary

Modifier and TypeField and Description
private static final VkSurfacePresentScalingCapabilitiesEXT

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkSurfacePresentScalingCapabilitiesEXT.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
protected VkSurfacePresentScalingCapabilitiesEXT
public VkExtent2D
public VkSurfacePresentScalingCapabilitiesEXT.Buffer
public VkSurfacePresentScalingCapabilitiesEXT.Buffer
public VkExtent2D
public VkSurfacePresentScalingCapabilitiesEXT.Buffer
public VkSurfacePresentScalingCapabilitiesEXT.Buffer
public long

Returns:

the value of the VkSurfacePresentScalingCapabilitiesEXT#pNext field.
pNext
()

public VkSurfacePresentScalingCapabilitiesEXT.Buffer
pNext(long value)

Sets the specified value to the VkSurfacePresentScalingCapabilitiesEXT#pNext field.

protected VkSurfacePresentScalingCapabilitiesEXT.Buffer
public int

Returns:

the value of the VkSurfacePresentScalingCapabilitiesEXT#sType field.
sType
()

public VkSurfacePresentScalingCapabilitiesEXT.Buffer
sType(int value)

Sets the specified value to the VkSurfacePresentScalingCapabilitiesEXT#sType field.

public VkSurfacePresentScalingCapabilitiesEXT.Buffer
public int
public VkSurfacePresentScalingCapabilitiesEXT.Buffer
public int
public VkSurfacePresentScalingCapabilitiesEXT.Buffer
public int
public VkSurfacePresentScalingCapabilitiesEXT.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkSurfacePresentScalingCapabilitiesEXT ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkSurfacePresentScalingCapabilitiesEXT.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 by VkSurfacePresentScalingCapabilitiesEXT#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

getElementFactoryback to summary
protected VkSurfacePresentScalingCapabilitiesEXT getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
maxScaledImageExtentback to summary
public VkExtent2D maxScaledImageExtent()
Returns:VkExtent2D

a VkExtent2D view of the VkSurfacePresentScalingCapabilitiesEXT#maxScaledImageExtent field.

maxScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer maxScaledImageExtent(VkExtent2D value)

Copies the specified VkExtent2D to the VkSurfacePresentScalingCapabilitiesEXT#maxScaledImageExtent field.

maxScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer maxScaledImageExtent(Consumer<VkExtent2D> consumer)

Passes the VkSurfacePresentScalingCapabilitiesEXT#maxScaledImageExtent field to the specified Consumer.

minScaledImageExtentback to summary
public VkExtent2D minScaledImageExtent()
Returns:VkExtent2D

a VkExtent2D view of the VkSurfacePresentScalingCapabilitiesEXT#minScaledImageExtent field.

minScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer minScaledImageExtent(VkExtent2D value)

Copies the specified VkExtent2D to the VkSurfacePresentScalingCapabilitiesEXT#minScaledImageExtent field.

minScaledImageExtentback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer minScaledImageExtent(Consumer<VkExtent2D> consumer)

Passes the VkSurfacePresentScalingCapabilitiesEXT#minScaledImageExtent field to the specified Consumer.

pNextback to summary
public long pNext()
Returns:long

the value of the VkSurfacePresentScalingCapabilitiesEXT#pNext field.

Annotations
@NativeType:void *
pNextback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer pNext(long value)

Sets the specified value to the VkSurfacePresentScalingCapabilitiesEXT#pNext field.

selfback to summary
protected VkSurfacePresentScalingCapabilitiesEXT.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
sTypeback to summary
public int sType()
Returns:int

the value of the VkSurfacePresentScalingCapabilitiesEXT#sType field.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer sType(int value)

Sets the specified value to the VkSurfacePresentScalingCapabilitiesEXT#sType field.

sType$Defaultback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer sType$Default()

Sets the STRUCTURE_TYPE_SURFACE_PRESENT_SCALING_CAPABILITIES_EXT value to the VkSurfacePresentScalingCapabilitiesEXT#sType field.

supportedPresentGravityXback to summary
public int supportedPresentGravityX()
Returns:int

the value of the VkSurfacePresentScalingCapabilitiesEXT#supportedPresentGravityX field.

Annotations
@NativeType:VkPresentGravityFlagsEXT
supportedPresentGravityXback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer supportedPresentGravityX(int value)

Sets the specified value to the VkSurfacePresentScalingCapabilitiesEXT#supportedPresentGravityX field.

supportedPresentGravityYback to summary
public int supportedPresentGravityY()
Returns:int

the value of the VkSurfacePresentScalingCapabilitiesEXT#supportedPresentGravityY field.

Annotations
@NativeType:VkPresentGravityFlagsEXT
supportedPresentGravityYback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer supportedPresentGravityY(int value)

Sets the specified value to the VkSurfacePresentScalingCapabilitiesEXT#supportedPresentGravityY field.

supportedPresentScalingback to summary
public int supportedPresentScaling()
Returns:int

the value of the VkSurfacePresentScalingCapabilitiesEXT#supportedPresentScaling field.

Annotations
@NativeType:VkPresentScalingFlagsEXT
supportedPresentScalingback to summary
public VkSurfacePresentScalingCapabilitiesEXT.Buffer supportedPresentScaling(int value)

Sets the specified value to the VkSurfacePresentScalingCapabilitiesEXT#supportedPresentScaling field.