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, NativeResource, Pointer
public class OVRTextureSwapChainDesc extends Struct
Description used to create a texture swap chain.Member documentation
ArraySize
– only supported withOVR.ovrTexture_2D
. Not supported on PC at this time.SampleCount
– current only supported on depth texturesStaticImage
– not buffered in a chain. For images that don't changeMiscFlags
–ovrTextureFlags
. One or more of:TextureMisc_AllowGenerateMips
TextureMisc_DX_Typeless
TextureMisc_None
TextureMisc_ProtectedContent
BindFlags
–ovrTextureBindFlags
. Not used for GL. One or more of:TextureBind_DX_DepthStencil
TextureBind_DX_RenderTarget
TextureBind_DX_UnorderedAccess
TextureBind_None
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 and Description static class
OVRTextureSwapChainDesc.Buffer
An array ofOVRTextureSwapChainDesc
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureSwapChainDesc
callocStack(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 ornull
if the address isNULL
.static OVRTextureSwapChainDesc.Buffer
create(long address, int capacity)
Create aOVRTextureSwapChainDesc.Buffer
instance at the specified memory.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, MemoryStack stack)
Returns a newOVRTextureSwapChainDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTextureSwapChainDesc
mallocStack(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.OVRTextureSwapChainDesc
nset(long struct)
Unsafe version ofset
.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()
Returns thesizeof(struct)
.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.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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.
-
nset
public OVRTextureSwapChainDesc nset(long struct)
Unsafe version ofset
.
-
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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newOVRTextureSwapChainDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRTextureSwapChainDesc callocStack(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, 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, 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
-
-