Skip to content

Commit

Permalink
Fixes from code review of Metal3 argument buffers.
Browse files Browse the repository at this point in the history
  • Loading branch information
billhollings committed Jul 2, 2024
1 parent a3908bf commit bfb35bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Docs/Whats_New.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Released TBD
- Fix shader conversion failure when using native texture atomics.
- MSL shader conversion, only pass resource bindings that apply to current shader stage.
- Update documentation for minimum runtime OS requirements to indicate _macOS 10.15_, _iOS 13_, or _tvOS 13_.
- Update `MVK_PRIVATE_API_VERSION` to version `43`.
- Update `MVK_PRIVATE_API_VERSION` to version `42`.
- Update to latest SPIRV-Cross:
- MSL: Add option to force depth write in fragment shaders
- MSL: Improve handling of padded descriptors with argument buffers
Expand Down
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/API/mvk_private_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef unsigned long MTLArgumentBuffersTier;
*/


#define MVK_PRIVATE_API_VERSION 43
#define MVK_PRIVATE_API_VERSION 42


#pragma mark -
Expand Down
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/GPUObjects/MVKDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class MVKInlineUniformBlockDescriptor : public MVKDescriptor {
~MVKInlineUniformBlockDescriptor() { reset(); }

protected:
inline uint8_t* getData() { return _mvkMTLBufferAllocation ? (uint8_t*)_mvkMTLBufferAllocation->getContents() : nullptr; }
uint8_t* getData() { return _mvkMTLBufferAllocation ? (uint8_t*)_mvkMTLBufferAllocation->getContents() : nullptr; }

MVKMTLBufferAllocation* _mvkMTLBufferAllocation = nullptr;
};
Expand Down

0 comments on commit bfb35bd

Please sign in to comment.