This project has moved and is read-only. For the latest updates, please go here.
These functions provide utility functionality throughout the library.

DXGI Format Utilities

IsValidVB
Returns false if the DXGI format is not valid for use in a Vertex Buffer (VB) input layout.

IsValidIB
Returns false if the DXGI format is not valid for use as an Index Buffer (IB) format.

Note that depending on feature level, some 'valid' DXGI formats may not be supported by the given device at runtime.

BytesPerElement
Returns the number of bytes per element for a given DXGI format. This function returns 0 for a format that is not valid for use as a VB input layout or an IB. For example, DXGI_FORMAT_R32G32B32_FLOAT returns 12 bytes.

Input Layout Descriptor Utilities

IsValid
Returns false if the given Direct3D 11 input layout description is invalid.

This performs many but not all of the same checks that the Direct3D debug layer performs.

ComputeInputLayout
Returns the byte offsets for each element of an input layout and the implied vertex stride from a given Direct3D 11 input layout description.

Attribute Utilities

ComputeSubsets
Returns a list of face offsets and counts based on the input attributes id array.

Mesh Optimization Utilities

ComputeVertexCacheMissRate
Returns the average cache miss ratio (ACMR) and average triangle vertex re-use (ATVR) for the post-transform vertex cache.

Last edited Jun 26, 2014 at 10:46 PM by walbourn, version 12