File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Gems/Atom/RHI/Code/Include/Atom/RHI Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,17 @@ namespace AZ::RHI
100
100
return m_deviceDispatchItems.at (deviceIndex);
101
101
}
102
102
103
+ // ! Retrieve arguments specifing a dispatch type.
104
+ const MultiDeviceDispatchArguments& GetArguments () const
105
+ {
106
+ return m_arguments;
107
+ }
108
+
103
109
// ! Arguments specific to a dispatch type.
104
110
void SetArguments (const MultiDeviceDispatchArguments& arguments)
105
111
{
112
+ m_arguments = arguments;
113
+
106
114
for (auto & [deviceIndex, dispatchItem] : m_deviceDispatchItems)
107
115
{
108
116
dispatchItem.m_arguments = arguments.GetDeviceDispatchArguments (deviceIndex);
@@ -162,6 +170,8 @@ namespace AZ::RHI
162
170
private:
163
171
// ! A DeviceMask denoting on which devices a device-specific DispatchItem should be generated
164
172
MultiDevice::DeviceMask m_deviceMask{ MultiDevice::DefaultDevice };
173
+ // ! Caching the arguments for the corresponding getter.
174
+ MultiDeviceDispatchArguments m_arguments;
165
175
// ! A map of all device-specific DispatchItem, indexed by the device index
166
176
AZStd::unordered_map<int , DispatchItem> m_deviceDispatchItems;
167
177
};
You can’t perform that action at this time.
0 commit comments