Skip to content

Commit

Permalink
Removed DWORD from public interface
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed May 28, 2020
1 parent 2191878 commit 1c8e73c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions DirectXMesh/DirectXMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ namespace DirectX
HRESULT __cdecl ComputeNormals(
_In_reads_(nFaces * 3) const uint16_t* indices, _In_ size_t nFaces,
_In_reads_(nVerts) const XMFLOAT3* positions, _In_ size_t nVerts,
_In_ DWORD flags,
_In_ uint32_t flags,
_Out_writes_(nVerts) XMFLOAT3* normals) noexcept;
HRESULT __cdecl ComputeNormals(
_In_reads_(nFaces * 3) const uint32_t* indices, _In_ size_t nFaces,
_In_reads_(nVerts) const XMFLOAT3* positions, _In_ size_t nVerts,
_In_ DWORD flags,
_In_ uint32_t flags,
_Out_writes_(nVerts) XMFLOAT3* normals) noexcept;
// Computes vertex normals

Expand Down Expand Up @@ -328,11 +328,11 @@ namespace DirectX
HRESULT __cdecl Validate(
_In_reads_(nFaces * 3) const uint16_t* indices, _In_ size_t nFaces,
_In_ size_t nVerts, _In_reads_opt_(nFaces * 3) const uint32_t* adjacency,
_In_ DWORD flags, _In_opt_ std::wstring* msgs = nullptr);
_In_ uint32_t flags, _In_opt_ std::wstring* msgs = nullptr);
HRESULT __cdecl Validate(
_In_reads_(nFaces * 3) const uint32_t* indices, _In_ size_t nFaces,
_In_ size_t nVerts, _In_reads_opt_(nFaces * 3) const uint32_t* adjacency,
_In_ DWORD flags, _In_opt_ std::wstring* msgs = nullptr);
_In_ uint32_t flags, _In_opt_ std::wstring* msgs = nullptr);
// Checks the mesh for common problems, return 'S_OK' if no problems were found

HRESULT __cdecl Clean(
Expand Down Expand Up @@ -605,14 +605,14 @@ namespace DirectX
_In_reads_(nVertIndices) const uint16_t* uniqueVertexIndices, _In_ size_t nVertIndices,
_In_reads_(nPrimIndices) const MeshletTriangle* primitiveIndices, _In_ size_t nPrimIndices,
_Out_writes_(nMeshlets) CullData* cullData,
_In_ MESHLET_FLAGS flags = MESHLET_DEFAULT) noexcept;
_In_ uint32_t flags = MESHLET_DEFAULT) noexcept;
HRESULT __cdecl ComputeCullData(
_In_reads_(nVerts) const XMFLOAT3* positions, _In_ size_t nVerts,
_In_reads_(nMeshlets) const Meshlet* meshlets, _In_ size_t nMeshlets,
_In_reads_(nVertIndices) const uint32_t* uniqueVertexIndices, _In_ size_t nVertIndices,
_In_reads_(nPrimIndices) const MeshletTriangle* primitiveIndices, _In_ size_t nPrimIndices,
_Out_writes_(nMeshlets) CullData* cullData,
_In_ MESHLET_FLAGS flags = MESHLET_DEFAULT) noexcept;
_In_ uint32_t flags = MESHLET_DEFAULT) noexcept;
// Computes culling data for each input meshlet

#include "DirectXMesh.inl"
Expand Down
4 changes: 2 additions & 2 deletions DirectXMesh/DirectXMeshNormals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ HRESULT DirectX::ComputeNormals(
size_t nFaces,
const XMFLOAT3* positions,
size_t nVerts,
DWORD flags,
uint32_t flags,
XMFLOAT3* normals) noexcept
{
if (!indices || !positions || !nFaces || !nVerts || !normals)
Expand Down Expand Up @@ -304,7 +304,7 @@ HRESULT DirectX::ComputeNormals(
size_t nFaces,
const XMFLOAT3* positions,
size_t nVerts,
DWORD flags,
uint32_t flags,
XMFLOAT3* normals) noexcept
{
if (!indices || !positions || !nFaces || !nVerts || !normals)
Expand Down
6 changes: 3 additions & 3 deletions DirectXMesh/DirectXMeshValidate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace
HRESULT ValidateIndices(
_In_reads_(nFaces * 3) const index_t* indices, _In_ size_t nFaces,
_In_ size_t nVerts, _In_reads_opt_(nFaces * 3) const uint32_t* adjacency,
_In_ DWORD flags, _In_opt_ std::wstring* msgs)
_In_ uint32_t flags, _In_opt_ std::wstring* msgs)
{
bool result = true;

Expand Down Expand Up @@ -361,7 +361,7 @@ HRESULT DirectX::Validate(
size_t nFaces,
size_t nVerts,
const uint32_t* adjacency,
DWORD flags,
uint32_t flags,
std::wstring* msgs)
{
if (!indices || !nFaces || !nVerts)
Expand Down Expand Up @@ -398,7 +398,7 @@ HRESULT DirectX::Validate(
size_t nFaces,
size_t nVerts,
const uint32_t* adjacency,
DWORD flags,
uint32_t flags,
std::wstring* msgs)
{
if (!indices || !nFaces || !nVerts)
Expand Down
6 changes: 3 additions & 3 deletions DirectXMesh/DirectXMeshletGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ namespace
_In_reads_(nPrimIndices) const MeshletTriangle* primitiveIndices,
size_t nPrimIndices,
_Out_writes_(nMeshlets) CullData* cullData,
MESHLET_FLAGS flags)
uint32_t flags)
{
// Input validation
if (!positions || !meshlets || !uniqueVertexIndices || !primitiveIndices || !cullData)
Expand Down Expand Up @@ -843,7 +843,7 @@ HRESULT DirectX::ComputeCullData(
const MeshletTriangle* primitiveIndices,
size_t nPrimIndices,
CullData* cullData,
MESHLET_FLAGS flags) noexcept
uint32_t flags) noexcept
{
return ComputeCullDataInternal<uint16_t>(
positions, nVerts,
Expand All @@ -864,7 +864,7 @@ HRESULT DirectX::ComputeCullData(
const MeshletTriangle* primitiveIndices,
size_t nPrimIndices,
CullData* cullData,
MESHLET_FLAGS flags) noexcept
uint32_t flags) noexcept
{
return ComputeCullDataInternal<uint32_t>(
positions, nVerts,
Expand Down

0 comments on commit 1c8e73c

Please sign in to comment.