Back to class index
VertexBuffer[Class Summary]
hasPosPreScaleMatrix
posScale
posAdd
usedVertexAttribStreamIndices
vertexBufferObject
vertexBufferObject2
gpuVertexBufferBytes2
vbToVsInputMappings
name
ctor
~dtor
ctor
operator=(rhs)
ctor
Deinit()
SetVertexDeclaration(decl)
ConvertToVertexDeclaration(decl)
Declaration()[const] (+1 overload)
SetNumVertices(...)
EraseVertices(index,numVertices)
NumVertices()[const]
CapacityBytes()[const]
AppendVertices(numVertices) (+1 overload)
NumPrimitives()[const]
SizeBytes()[const]
VertexSizeBytes()[const]
Set(...) (+2 overloads)
SetFloat4(...)
SetFloat3(...)
SetFloat2(...)
SetFloat(...)
Set(...)
Get(...)[const]
SwapVertices(i,j)
GetPointer(vertexIndex) (+1 overload)
CpuPtr() (+1 overload)
GetPointer(vertexIndex)[const] (+1 overload)
GetOffset(vertexIndex)[const] (+1 overload)
AllocateCpuMemory()
AllocateGpuMemory(...) (+1 overload)
UpdateToGpu()
HasCpuMemory()[const]
CpuSizeBytes()[const]
HasGpuMemory()[const]
GpuSizeBytes()[const]
FreeCpuMemory()
FreeGpuMemory()
BindToMaterial(material)
IsBindingCompatibleWith(material)[const]
IsBoundToMaterial()[const]
BoundingAABB()[const] (+1 overload)
BoundingSphere()[const]
ConvexHull()[const]
NumVerticesNeededToRenderNPrimitives(numPrimitives)[const]
SaveToFile(filename) (+1 overload)
LoadFromFile(...) (+1 overload)
Transform(matrix)
WeldVertices(...)
RemoveSmallTriangles(minArea)
PreScaleMatrix()[const]
Name()[const]

VertexBuffer::AllocateGpuMemory

Syntax

void VertexBuffer::AllocateGpuMemory(ResourceUsage usage, bool needCpuReadAccess, bool needCpuWriteAccess);
void VertexBuffer::AllocateGpuMemory(); [1 lines of code]

Creates the GPU-side data array for this vertex buffer, if one did not yet exist.

Parameters

boolneedCpuReadAccessFrom D3D11 docs: "The resource is to be mappable so that the CPU can read its contents. Resources created with this flag cannot be set as either inputs or outputs to the pipeline and must be created with staging usage." @param needCpuWriteAccess D3D11: "The resource is to be mappable so that the CPU can change its contents. Resources created with this flag cannot be set as outputs of the pipeline and must be created with either dynamic or staging usage. "

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index