RequestBatchExecutionType: Change executionType values

Fits better for the front-facing API.
This commit is contained in:
tt2468 2021-12-10 22:00:02 -08:00
parent b66d2284b3
commit c9c5da6837
3 changed files with 16 additions and 16 deletions

View File

@ -142,7 +142,7 @@
"rpcVersion": "1",
"deprecated": false,
"initialVersion": "5.0.0",
"enumValue": 0
"enumValue": "-1"
},
{
"description": "A request batch which processes all requests serially, as fast as possible.\n\nNote: To introduce artificial delay, use the `Sleep` request and the `sleepMillis` request field.",
@ -150,7 +150,7 @@
"rpcVersion": "1",
"deprecated": false,
"initialVersion": "5.0.0",
"enumValue": 1
"enumValue": 0
},
{
"description": "A request batch type which processes all requests serially, in sync with the graphics thread. Designed to provide high accuracy for animations.\n\nNote: To introduce artificial delay, use the `Sleep` request and the `sleepFrames` request field.",
@ -158,7 +158,7 @@
"rpcVersion": "1",
"deprecated": false,
"initialVersion": "5.0.0",
"enumValue": 2
"enumValue": 1
},
{
"description": "A request batch type which processes all requests using all available threads in the thread pool.\n\nNote: This is mainly experimental, and only really shows its colors during requests which require lots of\nactive processing, like `GetSourceScreenshot`.",
@ -166,7 +166,7 @@
"rpcVersion": "1",
"deprecated": false,
"initialVersion": "5.0.0",
"enumValue": 3
"enumValue": 2
}
]
},

View File

@ -696,7 +696,7 @@ A requested feature is not supported due to hardware/software limitations.
Not a request batch.
- Identifier Value: `0`
- Identifier Value: `-1`
- Latest Supported RPC Version: `1`
- Added in v5.0.0
@ -708,7 +708,7 @@ A request batch which processes all requests serially, as fast as possible.
Note: To introduce artificial delay, use the `Sleep` request and the `sleepMillis` request field.
- Identifier Value: `1`
- Identifier Value: `0`
- Latest Supported RPC Version: `1`
- Added in v5.0.0
@ -720,7 +720,7 @@ A request batch type which processes all requests serially, in sync with the gra
Note: To introduce artificial delay, use the `Sleep` request and the `sleepFrames` request field.
- Identifier Value: `2`
- Identifier Value: `1`
- Latest Supported RPC Version: `1`
- Added in v5.0.0
@ -733,7 +733,7 @@ A request batch type which processes all requests using all available threads in
Note: This is mainly experimental, and only really shows its colors during requests which require lots of
active processing, like `GetSourceScreenshot`.
- Identifier Value: `3`
- Identifier Value: `2`
- Latest Supported RPC Version: `1`
- Added in v5.0.0
## RequestStatus

View File

@ -27,26 +27,26 @@ namespace RequestBatchExecutionType {
* Not a request batch.
*
* @enumIdentifier None
* @enumValue 0
* @enumValue -1
* @enumType RequestBatchExecutionType
* @rpcVersion -1
* @initialVersion 5.0.0
* @api enums
*/
None = 0,
None = -1,
/**
* A request batch which processes all requests serially, as fast as possible.
*
* Note: To introduce artificial delay, use the `Sleep` request and the `sleepMillis` request field.
*
* @enumIdentifier SerialRealtime
* @enumValue 1
* @enumValue 0
* @enumType RequestBatchExecutionType
* @rpcVersion -1
* @initialVersion 5.0.0
* @api enums
*/
SerialRealtime = 1,
SerialRealtime = 0,
/**
* A request batch type which processes all requests serially, in sync with the graphics thread. Designed to
* provide high accuracy for animations.
@ -54,13 +54,13 @@ namespace RequestBatchExecutionType {
* Note: To introduce artificial delay, use the `Sleep` request and the `sleepFrames` request field.
*
* @enumIdentifier SerialFrame
* @enumValue 2
* @enumValue 1
* @enumType RequestBatchExecutionType
* @rpcVersion -1
* @initialVersion 5.0.0
* @api enums
*/
SerialFrame = 2,
SerialFrame = 1,
/**
* A request batch type which processes all requests using all available threads in the thread pool.
*
@ -68,13 +68,13 @@ namespace RequestBatchExecutionType {
* active processing, like `GetSourceScreenshot`.
*
* @enumIdentifier Parallel
* @enumValue 3
* @enumValue 2
* @enumType RequestBatchExecutionType
* @rpcVersion -1
* @initialVersion 5.0.0
* @api enums
*/
Parallel = 3,
Parallel = 2,
};
inline bool IsValid(uint8_t executionType)