From 1e887d827e65a084a0ad0ba933c61a8330aeee07 Mon Sep 17 00:00:00 2001 From: Bryan Galdrikian Date: Mon, 28 Aug 2017 13:55:34 -0700 Subject: 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. --- samples/SampleBase/blast/BlastFamilyModelSimple.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samples/SampleBase/blast/BlastFamilyModelSimple.cpp') 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); -- cgit v1.2.3