Package org.lwjgl.ovr
Class OVRTextureSwapChainDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRTextureSwapChainDesc
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class OVRTextureSwapChainDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Description used to create a texture swap chain.Member documentation
Type
– must be:Texture_2D
Format
– one of:ArraySize
– must be 6 forTexture_Cube
, 1 for other typesStaticImage
– not buffered in a chain. For images that don't changeMiscFlags
–ovrTextureFlags
. One or more of:TextureMisc_None
TextureMisc_DX_Typeless
TextureMisc_AllowGenerateMips
TextureMisc_ProtectedContent
TextureMisc_AutoGenerateMips
BindFlags
–ovrTextureBindFlags
. Not used for GL. One or more of:TextureBind_None
TextureBind_DX_RenderTarget
TextureBind_DX_UnorderedAccess
TextureBind_DX_DepthStencil
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 Modifier and Type Class Description static class
OVRTextureSwapChainDesc.Buffer
An array ofOVRTextureSwapChainDesc
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ARRAYSIZE
BINDFLAGS
FORMAT
HEIGHT
MIPLEVELS
MISCFLAGS
SAMPLECOUNTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STATICIMAGE
TYPE
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRTextureSwapChainDesc(java.nio.ByteBuffer container)
Creates aOVRTextureSwapChainDesc
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
ArraySize()
Returns the value of theArraySize
field.OVRTextureSwapChainDesc
ArraySize(int value)
Sets the specified value to theArraySize
field.int
BindFlags()
Returns the value of theBindFlags
field.OVRTextureSwapChainDesc
BindFlags(int value)
Sets the specified value to theBindFlags
field.static OVRTextureSwapChainDesc
calloc()
Returns a newOVRTextureSwapChainDesc
instance allocated withmemCalloc
.static OVRTextureSwapChainDesc.Buffer
calloc(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemCalloc
.static OVRTextureSwapChainDesc
callocStack()
Returns a newOVRTextureSwapChainDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTextureSwapChainDesc.Buffer
callocStack(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTextureSwapChainDesc.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureSwapChainDesc
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureSwapChainDesc
create()
Returns a newOVRTextureSwapChainDesc
instance allocated withBufferUtils
.static OVRTextureSwapChainDesc.Buffer
create(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withBufferUtils
.static OVRTextureSwapChainDesc
create(long address)
Returns a newOVRTextureSwapChainDesc
instance for the specified memory address.static OVRTextureSwapChainDesc.Buffer
create(long address, int capacity)
Create aOVRTextureSwapChainDesc.Buffer
instance at the specified memory.static OVRTextureSwapChainDesc
createSafe(long address)
static OVRTextureSwapChainDesc.Buffer
createSafe(long address, int capacity)
int
Format()
Returns the value of theFormat
field.OVRTextureSwapChainDesc
Format(int value)
Sets the specified value to theFormat
field.int
Height()
Returns the value of theHeight
field.OVRTextureSwapChainDesc
Height(int value)
Sets the specified value to theHeight
field.static OVRTextureSwapChainDesc
malloc()
Returns a newOVRTextureSwapChainDesc
instance allocated withmemAlloc
.static OVRTextureSwapChainDesc.Buffer
malloc(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemAlloc
.static OVRTextureSwapChainDesc
mallocStack()
Returns a newOVRTextureSwapChainDesc
instance allocated on the thread-localMemoryStack
.static OVRTextureSwapChainDesc.Buffer
mallocStack(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the thread-localMemoryStack
.static OVRTextureSwapChainDesc.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTextureSwapChainDesc
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
.int
MipLevels()
Returns the value of theMipLevels
field.OVRTextureSwapChainDesc
MipLevels(int value)
Sets the specified value to theMipLevels
field.int
MiscFlags()
Returns the value of theMiscFlags
field.OVRTextureSwapChainDesc
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()
Returns the value of theSampleCount
field.OVRTextureSwapChainDesc
SampleCount(int value)
Sets the specified value to theSampleCount
field.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.OVRTextureSwapChainDesc
set(OVRTextureSwapChainDesc src)
Copies the specified struct data to this struct.int
sizeof()
boolean
StaticImage()
Returns the value of theStaticImage
field.OVRTextureSwapChainDesc
StaticImage(boolean value)
Sets the specified value to theStaticImage
field.int
Type()
Returns the value of theType
field.OVRTextureSwapChainDesc
Type(int value)
Sets the specified value to theType
field.int
Width()
Returns the value of theWidth
field.OVRTextureSwapChainDesc
Width(int value)
Sets the specified value to theWidth
field.
-
-
-
Constructor Detail
-
OVRTextureSwapChainDesc
public OVRTextureSwapChainDesc(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
Type
public int Type()
Returns the value of theType
field.
-
Format
public int Format()
Returns the value of theFormat
field.
-
ArraySize
public int ArraySize()
Returns the value of theArraySize
field.
-
Width
public int Width()
Returns the value of theWidth
field.
-
Height
public int Height()
Returns the value of theHeight
field.
-
MipLevels
public int MipLevels()
Returns the value of theMipLevels
field.
-
SampleCount
public int SampleCount()
Returns the value of theSampleCount
field.
-
StaticImage
public boolean StaticImage()
Returns the value of theStaticImage
field.
-
MiscFlags
public int MiscFlags()
Returns the value of theMiscFlags
field.
-
BindFlags
public int BindFlags()
Returns the value of theBindFlags
field.
-
Type
public OVRTextureSwapChainDesc Type(int value)
Sets the specified value to theType
field.
-
Format
public OVRTextureSwapChainDesc Format(int value)
Sets the specified value to theFormat
field.
-
ArraySize
public OVRTextureSwapChainDesc ArraySize(int value)
Sets the specified value to theArraySize
field.
-
Width
public OVRTextureSwapChainDesc Width(int value)
Sets the specified value to theWidth
field.
-
Height
public OVRTextureSwapChainDesc Height(int value)
Sets the specified value to theHeight
field.
-
MipLevels
public OVRTextureSwapChainDesc MipLevels(int value)
Sets the specified value to theMipLevels
field.
-
SampleCount
public OVRTextureSwapChainDesc SampleCount(int value)
Sets the specified value to theSampleCount
field.
-
StaticImage
public OVRTextureSwapChainDesc StaticImage(boolean value)
Sets the specified value to theStaticImage
field.
-
MiscFlags
public OVRTextureSwapChainDesc MiscFlags(int value)
Sets the specified value to theMiscFlags
field.
-
BindFlags
public OVRTextureSwapChainDesc BindFlags(int value)
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
public OVRTextureSwapChainDesc set(OVRTextureSwapChainDesc src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static OVRTextureSwapChainDesc malloc()
Returns a newOVRTextureSwapChainDesc
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRTextureSwapChainDesc calloc()
Returns a newOVRTextureSwapChainDesc
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRTextureSwapChainDesc create()
Returns a newOVRTextureSwapChainDesc
instance allocated withBufferUtils
.
-
create
public static OVRTextureSwapChainDesc create(long address)
Returns a newOVRTextureSwapChainDesc
instance for the specified memory address.
-
createSafe
@Nullable public static OVRTextureSwapChainDesc createSafe(long address)
-
malloc
public static OVRTextureSwapChainDesc.Buffer malloc(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRTextureSwapChainDesc.Buffer calloc(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTextureSwapChainDesc.Buffer create(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTextureSwapChainDesc.Buffer create(long address, int capacity)
Create aOVRTextureSwapChainDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static OVRTextureSwapChainDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRTextureSwapChainDesc mallocStack()
Returns a newOVRTextureSwapChainDesc
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRTextureSwapChainDesc callocStack()
Returns a newOVRTextureSwapChainDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRTextureSwapChainDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRTextureSwapChainDesc callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRTextureSwapChainDesc.Buffer mallocStack(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRTextureSwapChainDesc.Buffer callocStack(int capacity)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRTextureSwapChainDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRTextureSwapChainDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-