1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-07 16:54:14 +01:00

[dxvk] Allow mutable commands to be recorded into CS chunks

This commit is contained in:
Philip Rebohle 2022-07-16 20:19:46 +02:00
parent 39dd25e972
commit 6e8598846d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -47,7 +47,7 @@ namespace dxvk {
* \brief Executes embedded commands * \brief Executes embedded commands
* \param [in] ctx The target context * \param [in] ctx The target context
*/ */
virtual void exec(DxvkContext* ctx) const = 0; virtual void exec(DxvkContext* ctx) = 0;
private: private:
@ -73,7 +73,7 @@ namespace dxvk {
DxvkCsTypedCmd (DxvkCsTypedCmd&&) = delete; DxvkCsTypedCmd (DxvkCsTypedCmd&&) = delete;
DxvkCsTypedCmd& operator = (DxvkCsTypedCmd&&) = delete; DxvkCsTypedCmd& operator = (DxvkCsTypedCmd&&) = delete;
void exec(DxvkContext* ctx) const { void exec(DxvkContext* ctx) {
m_command(ctx); m_command(ctx);
} }
@ -104,7 +104,7 @@ namespace dxvk {
DxvkCsDataCmd (DxvkCsDataCmd&&) = delete; DxvkCsDataCmd (DxvkCsDataCmd&&) = delete;
DxvkCsDataCmd& operator = (DxvkCsDataCmd&&) = delete; DxvkCsDataCmd& operator = (DxvkCsDataCmd&&) = delete;
void exec(DxvkContext* ctx) const { void exec(DxvkContext* ctx) {
m_command(ctx, &m_data); m_command(ctx, &m_data);
} }