Package org.lwjgl.ovr
Class OVRTextureSwapChainDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class OVRTextureSwapChainDesc
extends Struct<OVRTextureSwapChainDesc>
implements NativeResource
Description used to create a texture swap chain.
Layout
struct ovrTextureSwapChainDesc {
ovrTextureType Type()
;
ovrTextureFormat Format()
;
int ArraySize()
;
int Width;
int Height;
int MipLevels;
int SampleCount;
ovrBool StaticImage()
;
unsigned int MiscFlags()
;
unsigned int BindFlags()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRTextureSwapChainDesc
(ByteBuffer container) Creates aOVRTextureSwapChainDesc
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
must be 6 forTexture_Cube
, size of texture array otherwiseArraySize
(int value) Sets the specified value to theArraySize()
field.int
ovrTextureBindFlags
.BindFlags
(int value) Sets the specified value to theBindFlags()
field.static OVRTextureSwapChainDesc
calloc()
Returns a newOVRTextureSwapChainDesc
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureSwapChainDesc
calloc
(MemoryStack stack) Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureSwapChainDesc
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRTextureSwapChainDesc
callocStack
(MemoryStack stack) Deprecated.static OVRTextureSwapChainDesc
create()
Returns a newOVRTextureSwapChainDesc
instance allocated withBufferUtils
.create
(int capacity) Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withBufferUtils
.static OVRTextureSwapChainDesc
create
(long address) Returns a newOVRTextureSwapChainDesc
instance for the specified memory address.create
(long address, int capacity) Create aOVRTextureSwapChainDesc.Buffer
instance at the specified memory.static OVRTextureSwapChainDesc
createSafe
(long address) createSafe
(long address, int capacity) int
Format()
one of:OVR.OVR_FORMAT_UNKNOWN
OVR.OVR_FORMAT_B5G6R5_UNORM
OVR.OVR_FORMAT_B5G5R5A1_UNORM
OVR.OVR_FORMAT_B4G4R4A4_UNORM
OVR.OVR_FORMAT_R8G8B8A8_UNORM
OVR.OVR_FORMAT_R8G8B8A8_UNORM_SRGB
OVR.OVR_FORMAT_B8G8R8A8_UNORM
OVR.OVR_FORMAT_B8G8R8_UNORM
OVR.OVR_FORMAT_B8G8R8A8_UNORM_SRGB
OVR.OVR_FORMAT_B8G8R8X8_UNORM
OVR.OVR_FORMAT_B8G8R8X8_UNORM_SRGB
OVR.OVR_FORMAT_R16G16B16A16_FLOAT
OVR.OVR_FORMAT_R11G11B10_FLOAT
OVR.OVR_FORMAT_D16_UNORM
OVR.OVR_FORMAT_D24_UNORM_S8_UINT
OVR.OVR_FORMAT_D32_FLOAT
OVR.OVR_FORMAT_D32_FLOAT_S8X24_UINT
OVR.OVR_FORMAT_BC1_UNORM
OVR.OVR_FORMAT_BC1_UNORM_SRGB
OVR.OVR_FORMAT_BC2_UNORM
OVR.OVR_FORMAT_BC2_UNORM_SRGB
OVR.OVR_FORMAT_BC3_UNORM
OVR.OVR_FORMAT_BC3_UNORM_SRGB
OVR.OVR_FORMAT_BC6H_UF16
OVR.OVR_FORMAT_BC6H_SF16
OVR.OVR_FORMAT_BC7_UNORM
OVR.OVR_FORMAT_BC7_UNORM_SRGB
Format
(int value) Sets the specified value to theFormat()
field.int
Height()
Height
(int value) Sets the specified value to theHeight
field.static OVRTextureSwapChainDesc
malloc()
Returns a newOVRTextureSwapChainDesc
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTextureSwapChainDesc
malloc
(MemoryStack stack) Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
.static OVRTextureSwapChainDesc
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRTextureSwapChainDesc
mallocStack
(MemoryStack stack) Deprecated.int
MipLevels
(int value) Sets the specified value to theMipLevels
field.int
ovrTextureFlags
.MiscFlags
(int value) Sets the specified value to theMiscFlags()
field.static int
nArraySize
(long struct) Unsafe version ofArraySize()
.static void
nArraySize
(long struct, int value) Unsafe version ofArraySize
.static int
nBindFlags
(long struct) Unsafe version ofBindFlags()
.static void
nBindFlags
(long struct, int value) Unsafe version ofBindFlags
.static int
nFormat
(long struct) Unsafe version ofFormat()
.static void
nFormat
(long struct, int value) Unsafe version ofFormat
.static int
nHeight
(long struct) Unsafe version ofHeight()
.static void
nHeight
(long struct, int value) Unsafe version ofHeight
.static int
nMipLevels
(long struct) Unsafe version ofMipLevels()
.static void
nMipLevels
(long struct, int value) Unsafe version ofMipLevels
.static int
nMiscFlags
(long struct) Unsafe version ofMiscFlags()
.static void
nMiscFlags
(long struct, int value) Unsafe version ofMiscFlags
.static int
nSampleCount
(long struct) Unsafe version ofSampleCount()
.static void
nSampleCount
(long struct, int value) Unsafe version ofSampleCount
.static boolean
nStaticImage
(long struct) Unsafe version ofStaticImage()
.static void
nStaticImage
(long struct, boolean value) Unsafe version ofStaticImage
.static int
nType
(long struct) Unsafe version ofType()
.static void
nType
(long struct, int value) Unsafe version ofType
.static int
nWidth
(long struct) Unsafe version ofWidth()
.static void
nWidth
(long struct, int value) Unsafe version ofWidth
.int
SampleCount
(int value) Sets the specified value to theSampleCount
field.set
(int Type, int Format, int ArraySize, int Width, int Height, int MipLevels, int SampleCount, boolean StaticImage, int MiscFlags, int BindFlags) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.boolean
not buffered in a chain.StaticImage
(boolean value) Sets the specified value to theStaticImage()
field.int
Type()
Type
(int value) Sets the specified value to theType()
field.int
Width()
Width
(int value) Sets the specified value to theWidth
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
ARRAYSIZE
public static final int ARRAYSIZEThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
MIPLEVELS
public static final int MIPLEVELSThe struct member offsets. -
SAMPLECOUNT
public static final int SAMPLECOUNTThe struct member offsets. -
STATICIMAGE
public static final int STATICIMAGEThe struct member offsets. -
MISCFLAGS
public static final int MISCFLAGSThe struct member offsets. -
BINDFLAGS
public static final int BINDFLAGSThe struct member offsets.
-
-
Constructor Details
-
OVRTextureSwapChainDesc
Creates aOVRTextureSwapChainDesc
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<OVRTextureSwapChainDesc>
-
Type
public int Type()one of:Texture_2D
Texture_Cube
-
Format
public int Format()one of: -
ArraySize
public int ArraySize()must be 6 forTexture_Cube
, size of texture array otherwise -
Width
public int Width()- Returns:
- the value of the
Width
field.
-
Height
public int Height()- Returns:
- the value of the
Height
field.
-
MipLevels
public int MipLevels()- Returns:
- the value of the
MipLevels
field.
-
SampleCount
public int SampleCount()- Returns:
- the value of the
SampleCount
field.
-
StaticImage
public boolean StaticImage()not buffered in a chain. For images that don't change -
MiscFlags
public int MiscFlags()ovrTextureFlags
. One or more of:TextureMisc_None
TextureMisc_DX_Typeless
TextureMisc_AllowGenerateMips
TextureMisc_ProtectedContent
TextureMisc_AutoGenerateMips
-
BindFlags
public int BindFlags()ovrTextureBindFlags
. Not used for GL. One or more of:TextureBind_None
TextureBind_DX_RenderTarget
TextureBind_DX_UnorderedAccess
TextureBind_DX_DepthStencil
-
Type
Sets the specified value to theType()
field. -
Format
Sets the specified value to theFormat()
field. -
ArraySize
Sets the specified value to theArraySize()
field. -
Width
Sets the specified value to theWidth
field. -
Height
Sets the specified value to theHeight
field. -
MipLevels
Sets the specified value to theMipLevels
field. -
SampleCount
Sets the specified value to theSampleCount
field. -
StaticImage
Sets the specified value to theStaticImage()
field. -
MiscFlags
Sets the specified value to theMiscFlags()
field. -
BindFlags
Sets the specified value to theBindFlags()
field. -
set
public OVRTextureSwapChainDesc set(int Type, int Format, int ArraySize, int Width, int Height, int MipLevels, int SampleCount, boolean StaticImage, int MiscFlags, int BindFlags) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRTextureSwapChainDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRTextureSwapChainDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRTextureSwapChainDesc
instance allocated withBufferUtils
. -
create
Returns a newOVRTextureSwapChainDesc
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRTextureSwapChainDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static OVRTextureSwapChainDesc.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static OVRTextureSwapChainDesc.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nType
public static int nType(long struct) Unsafe version ofType()
. -
nFormat
public static int nFormat(long struct) Unsafe version ofFormat()
. -
nArraySize
public static int nArraySize(long struct) Unsafe version ofArraySize()
. -
nWidth
public static int nWidth(long struct) Unsafe version ofWidth()
. -
nHeight
public static int nHeight(long struct) Unsafe version ofHeight()
. -
nMipLevels
public static int nMipLevels(long struct) Unsafe version ofMipLevels()
. -
nSampleCount
public static int nSampleCount(long struct) Unsafe version ofSampleCount()
. -
nStaticImage
public static boolean nStaticImage(long struct) Unsafe version ofStaticImage()
. -
nMiscFlags
public static int nMiscFlags(long struct) Unsafe version ofMiscFlags()
. -
nBindFlags
public static int nBindFlags(long struct) Unsafe version ofBindFlags()
. -
nType
public static void nType(long struct, int value) Unsafe version ofType
. -
nFormat
public static void nFormat(long struct, int value) Unsafe version ofFormat
. -
nArraySize
public static void nArraySize(long struct, int value) Unsafe version ofArraySize
. -
nWidth
public static void nWidth(long struct, int value) Unsafe version ofWidth
. -
nHeight
public static void nHeight(long struct, int value) Unsafe version ofHeight
. -
nMipLevels
public static void nMipLevels(long struct, int value) Unsafe version ofMipLevels
. -
nSampleCount
public static void nSampleCount(long struct, int value) Unsafe version ofSampleCount
. -
nStaticImage
public static void nStaticImage(long struct, boolean value) Unsafe version ofStaticImage
. -
nMiscFlags
public static void nMiscFlags(long struct, int value) Unsafe version ofMiscFlags
. -
nBindFlags
public static void nBindFlags(long struct, int value) Unsafe version ofBindFlags
.
-