IBufferFactory
Description
- Extended by
-
BufferFactory abstract
Base interface for classes that create buffer resources for rendering.
Public / Methods
CreateIndexBuffer
Creates an IIndexBuffer object with ResourceAccessPattern.Dynamic or ResourceAccessPattern.Mappable access, depending on the given buffer flags opt.
- RenderException
-
If a graphics subsystem error has occurred.
CreateIndexBufferStatic
Creates an IIndexBuffer object with ResourceAccessPattern.Static access.
- RenderException
-
If a graphics subsystem error has occurred.
- See also
CreateStructuredBuffer
Creates a IGpuBuffer object with ResourceAccessPattern.Dynamic or ResourceAccessPattern.Mappable access, depending on the given buffer flags opt.
- RenderException
-
If a graphics subsystem error has occurred.
CreateStructuredBufferStatic
Creates a IGpuBuffer object with ResourceAccessPattern.Static access.
The capacity (see ICapacity.Capacity) of the returned structured buffer is equal to floor(BS/ES)
, where BS
is the buffer size (see ByteBuffer.Remaining) and ES
is the element size (see elementSize in). If ES
is zero, the capacity of the structured buffer is equal to the buffer size BS
.
- RenderException
-
If a graphics subsystem error has occurred.
CreateVertexBuffer
Creates a IVertexBuffer object with ResourceAccessPattern.Dynamic or ResourceAccessPattern.Mappable access, depending on the given buffer flags opt.
- RenderException
-
If a graphics subsystem error has occurred.
CreateVertexBufferStatic
Creates a IVertexBuffer object with ResourceAccessPattern.Static access.
The capacity (see ICapacity.Capacity) of the returned vertex buffer is equal to floor(BS/VS)
, where BS
is the buffer size (see ByteBuffer.Remaining) and VS
is the vertex size (see VertexElements.SizeAligned).
- RenderException
-
If a graphics subsystem error has occurred.
ValidateStructuredBuffer
Validates if a structured buffer can be created using the given arguments.
ValidateVertexElement
Validates if the given vertex element may be used to create vertex buffers.
Vertex elements of type VertexElementType.Placeholder may always be used to create vertex buffers, i.e. this method will return true
for those.