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:
parent
39dd25e972
commit
6e8598846d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user