Skip to content

Commit

Permalink
Minor code review
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Aug 27, 2024
1 parent 9994883 commit a9a70ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DirectXMesh/DirectXMeshVBReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ class VBReader::Impl
mDefaultStrides{},
mTempSize(0) {}

Impl(const Impl&) = delete;
Impl& operator=(const Impl&) = delete;

Impl(Impl&&) = default;
Impl& operator=(Impl&&) = default;

HRESULT Initialize(_In_reads_(nDecl) const InputElementDesc* vbDecl, size_t nDecl);
HRESULT AddStream(_In_reads_bytes_(stride*nVerts) const void* vb, size_t nVerts, size_t inputSlot, size_t stride) noexcept;
HRESULT Read(_Out_writes_(count) XMVECTOR* buffer, _In_z_ const char* semanticName, unsigned int semanticIndex, size_t count, bool x2bias) const;
Expand Down
6 changes: 6 additions & 0 deletions DirectXMesh/DirectXMeshVBWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ class VBWriter::Impl
mDefaultStrides{},
mTempSize(0) {}

Impl(const Impl&) = delete;
Impl& operator=(const Impl&) = delete;

Impl(Impl&&) = default;
Impl& operator=(Impl&&) = default;

HRESULT Initialize(_In_reads_(nDecl) const InputElementDesc* vbDecl, size_t nDecl);
HRESULT AddStream(_Out_writes_bytes_(stride*nVerts) void* vb, size_t nVerts, size_t inputSlot, size_t stride) noexcept;
HRESULT Write(_In_reads_(count) const XMVECTOR* buffer, _In_z_ const char* semanticName, unsigned int semanticIndex, size_t count, bool x2bias) const;
Expand Down

0 comments on commit a9a70ec

Please sign in to comment.