1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +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
* \param [in] ctx The target context
*/
virtual void exec(DxvkContext* ctx) const = 0;
virtual void exec(DxvkContext* ctx) = 0;
private:
@ -73,7 +73,7 @@ namespace dxvk {
DxvkCsTypedCmd (DxvkCsTypedCmd&&) = delete;
DxvkCsTypedCmd& operator = (DxvkCsTypedCmd&&) = delete;
void exec(DxvkContext* ctx) const {
void exec(DxvkContext* ctx) {
m_command(ctx);
}
@ -104,7 +104,7 @@ namespace dxvk {
DxvkCsDataCmd (DxvkCsDataCmd&&) = delete;
DxvkCsDataCmd& operator = (DxvkCsDataCmd&&) = delete;
void exec(DxvkContext* ctx) const {
void exec(DxvkContext* ctx) {
m_command(ctx, &m_data);
}