3#include "../Base/BuffersCommon.h"
7#include "CommonD3D11.h"
27 DXGI_FORMAT indexFormat;
37 uint16_t bindFlags = 0;
44 uint32_t uavCount = 0;
46 int aliasedHeight = 0;
47 bool aliasMapped =
false;
55 size_t numFormats = 0;
64 this->device = device_set;
69 this->context = context_set;
70 this->effects = effects_set;
97 size_t bufferMemoryConsumption = 0;
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
void releaseInputLayout(InputLayoutHandle vertexFormatHandle)
Releases the input layout with the given inputLayoutHandle.
void annotate(BufferHandle handle, const StringView &name) override
Associate a name with an object for use in graphics debugging.
void * getNativeHandle(BufferHandle bufferHandle) override
Get the device-specific handle (D3D buffer pointer, OpenGL buffer ID etc) associated with the given b...
void releaseBuffer(BufferHandle bufferHandle)
Releases the buffer with the given bufferHandle.
void releaseVertexBuffer(VertexBufferHandle vertexBufferHandle)
Release the vertex buffer with the given handle.
VertexBufferHandle loadVertexBuffer(const void *vertexData, const size_t count, const VertexFormat &vertexFormat)
Loads a new vertex buffer and populates it with the given data.
InputLayoutHandle loadInputLayout(const VertexFormatHandle *vertexFormats, const size_t count, EffectHandle effectHandle) override
Loads a new input layout to map vertex flow between vertex buffers with the given vertexFormats to ef...
void retrieveSubBuffer(void *, BufferHandle, const size_t, const size_t)
Retrieves the contents of a buffer.
BufferHandle loadBuffer(const void *data, const size_t size, Usage::EUsage usage, uint32_t accessMode, uint32_t bindFlags, uint32_t stride=0)
Loads a new buffer using the given data to populate the buffer.
IndexBufferHandle loadIndexBuffer(const void *vertexData, const size_t count, const size_t indexSize)
Loads a new index buffer and populates it with the given indexData.
void releaseResources()
Releases all allocated buffer resources.
void releaseIndexBuffer(IndexBufferHandle indexBufferHandle)
Releases the index buffer with the given handle.