diff options
| author | Bryan Galdrikian <[email protected]> | 2017-08-28 13:55:34 -0700 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-08-28 13:55:34 -0700 |
| commit | 1e887d827e65a084a0ad0ba933c61a8330aeee07 (patch) | |
| tree | 1e2aab418dadd37f5dc0aae4d8b00e81d909fd24 /samples/SampleBase/blast/BlastFamilyModelSimple.cpp | |
| parent | Removing ArtistTools and CurveEditor projects (diff) | |
| download | archived-blast-1e887d827e65a084a0ad0ba933c61a8330aeee07.tar.xz archived-blast-1e887d827e65a084a0ad0ba933c61a8330aeee07.zip | |
Candidate 1.1 release.
* SampleAssetViewer now unconditionally loads the commandline-defined asset.
* Better error handling in AuthoringTool (stderr and user error handler).
* More consistent commandline switches in AuthoringTool and ApexImporter (--ll, --tx, --px flags).
* NvBlastExtAuthoring
** Mesh cleaner, tries to remove self intersections and open edges in the interior of a mesh.
** Ability to set interior material to existing (external) material, or a new material id.
** Material ID remapping API.
** Rotation of voronoi cells used for fracturing.
* Fixed smoothing groups in FBX exporter code.
* Impulse passing from parent to child chunks fixed.
* Reading unskinned fbx meshes correctly.
* Collision hull generation from fbx meshes fixed.
* Win32/64 PerfTest crash fix.
Diffstat (limited to 'samples/SampleBase/blast/BlastFamilyModelSimple.cpp')
| -rw-r--r-- | samples/SampleBase/blast/BlastFamilyModelSimple.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/SampleBase/blast/BlastFamilyModelSimple.cpp b/samples/SampleBase/blast/BlastFamilyModelSimple.cpp index d8a1e33..3576b59 100644 --- a/samples/SampleBase/blast/BlastFamilyModelSimple.cpp +++ b/samples/SampleBase/blast/BlastFamilyModelSimple.cpp @@ -107,7 +107,7 @@ public: memset(&bufferDesc, 0, sizeof(D3D11_BUFFER_DESC)); bufferDesc.BindFlags = D3D11_BIND_INDEX_BUFFER; - bufferDesc.ByteWidth = sizeof(uint16_t) * m_numFaces; + bufferDesc.ByteWidth = sizeof(uint32_t) * m_numFaces; bufferDesc.CPUAccessFlags = 0; bufferDesc.MiscFlags = 0; bufferDesc.Usage = D3D11_USAGE_IMMUTABLE; @@ -134,7 +134,7 @@ public: context.IASetVertexBuffers(0, 2, buffers, strides, offsets); - context.IASetIndexBuffer(m_indexBuffer, DXGI_FORMAT_R16_UINT, 0); + context.IASetIndexBuffer(m_indexBuffer, DXGI_FORMAT_R32_UINT, 0); if (m_indexBuffer) context.DrawIndexed(m_numFaces, 0, 0); |