Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/APIInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/// \file
/// Diligent API information

#define DILIGENT_API_VERSION 256016
#define DILIGENT_API_VERSION 256017

#include "../../../Primitives/interface/BasicTypes.h"

Expand Down
12 changes: 10 additions & 2 deletions Graphics/GraphicsEngine/interface/DeviceContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@ struct DrawMeshIndirectAttribs
/// When pCounterBuffer is not null, state transition mode for the count buffer.
RESOURCE_STATE_TRANSITION_MODE CounterBufferStateTransitionMode DEFAULT_INITIALIZER(RESOURCE_STATE_TRANSITION_MODE_NONE);

/// Metal-specific mesh draw command attributes.
///
/// \remarks
/// This member is only used by Metal backend and is ignored by others.
const DrawMeshAttribsMtl* pMtlAttribs DEFAULT_INITIALIZER(nullptr);

#if DILIGENT_CPP_INTERFACE
/// Initializes the structure members with default values
constexpr DrawMeshIndirectAttribs() noexcept {}
Expand All @@ -726,15 +732,17 @@ struct DrawMeshIndirectAttribs
RESOURCE_STATE_TRANSITION_MODE _AttribsBufferStateTransitionMode = DrawMeshIndirectAttribs{}.AttribsBufferStateTransitionMode,
IBuffer* _pCounterBuffer = DrawMeshIndirectAttribs{}.pCounterBuffer,
Uint64 _CounterOffset = DrawMeshIndirectAttribs{}.CounterOffset,
RESOURCE_STATE_TRANSITION_MODE _CounterBufferStateTransitionMode = DrawMeshIndirectAttribs{}.CounterBufferStateTransitionMode) noexcept :
RESOURCE_STATE_TRANSITION_MODE _CounterBufferStateTransitionMode = DrawMeshIndirectAttribs{}.CounterBufferStateTransitionMode,
const DrawMeshAttribsMtl* _pMtlAttribs = DrawMeshIndirectAttribs{}.pMtlAttribs) noexcept :
pAttribsBuffer {_pAttribsBuffer },
DrawArgsOffset {_DrawArgsOffset },
Flags {_Flags },
CommandCount {_CommandCount },
AttribsBufferStateTransitionMode{_AttribsBufferStateTransitionMode},
pCounterBuffer {_pCounterBuffer },
CounterOffset {_CounterOffset },
CounterBufferStateTransitionMode{_CounterBufferStateTransitionMode}
CounterBufferStateTransitionMode{_CounterBufferStateTransitionMode},
pMtlAttribs {_pMtlAttribs }
{}
#endif
};
Expand Down
2 changes: 2 additions & 0 deletions ReleaseHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Current progress

* Added `DrawMeshIndirectAttribs::pMtlAttribs` member (API256017)
* `DrawMeshIndirectAttribs::pMtlAttribs` allows specifying Metal object and mesh thread group sizes for `IDeviceContext::DrawMeshIndirect()`
* Added `DrawMeshAttribsMtl` struct and `DrawMeshAttribs::pMtlAttribs` member (API256016)
* `DrawMeshAttribsMtl` allows specifying Metal object and mesh thread group sizes for `IDeviceContext::DrawMesh()`
* Added `TextureUpdateOffsetAlignment` and `TextureUpdateStrideAlignment` members to `BufferProperties` struct (API256015)
Expand Down
Loading
Loading