Skip to content

Commit

Permalink
WGPUComputeStage -> WGPUComputeState (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x authored Nov 26, 2024
1 parent f1bacdd commit 39ed517
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/compile/main.inl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int main(void) {
{ WGPUBlendState x = WGPU_BLEND_STATE_INIT; }
{ WGPUCompilationInfo x = WGPU_COMPILATION_INFO_INIT; }
{ WGPUComputePassDescriptor x = WGPU_COMPUTE_PASS_DESCRIPTOR_INIT; }
{ WGPUComputeStage x = WGPU_COMPUTE_STAGE_INIT; }
{ WGPUComputeState x = WGPU_COMPUTE_STATE_INIT; }
{ WGPUDepthStencilState x = WGPU_DEPTH_STENCIL_STATE_INIT; }
{ WGPUDeviceDescriptor x = WGPU_DEVICE_DESCRIPTOR_INIT; }
{ WGPUFutureWaitInfo x = WGPU_FUTURE_WAIT_INFO_INIT; }
Expand Down
18 changes: 9 additions & 9 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ struct WGPUBindGroupLayoutEntry;
struct WGPUBlendState;
struct WGPUCompilationInfo;
struct WGPUComputePassDescriptor;
struct WGPUComputeStage;
struct WGPUComputeState;
struct WGPUDepthStencilState;
struct WGPUDeviceDescriptor;
struct WGPUFutureWaitInfo;
Expand Down Expand Up @@ -3501,9 +3501,9 @@ typedef struct WGPUComputePassDescriptor {
})

/**
* Default values can be set using @ref WGPU_COMPUTE_STAGE_INIT as initializer.
* Default values can be set using @ref WGPU_COMPUTE_STATE_INIT as initializer.
*/
typedef struct WGPUComputeStage {
typedef struct WGPUComputeState {
WGPUChainedStruct const * nextInChain;
/**
* The `INIT` macro sets this to `NULL`.
Expand All @@ -3520,12 +3520,12 @@ typedef struct WGPUComputeStage {
*/
size_t constantCount;
WGPUConstantEntry const * constants;
} WGPUComputeStage WGPU_STRUCTURE_ATTRIBUTE;
} WGPUComputeState WGPU_STRUCTURE_ATTRIBUTE;

/**
* Initializer for @ref WGPUComputeStage.
* Initializer for @ref WGPUComputeState.
*/
#define WGPU_COMPUTE_STAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeStage, { \
#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.module=*/NULL _wgpu_COMMA \
/*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
Expand Down Expand Up @@ -3962,9 +3962,9 @@ typedef struct WGPUComputePipelineDescriptor {
*/
WGPU_NULLABLE WGPUPipelineLayout layout;
/**
* The `INIT` macro sets this to @ref WGPU_COMPUTE_STAGE_INIT.
* The `INIT` macro sets this to @ref WGPU_COMPUTE_STATE_INIT.
*/
WGPUComputeStage compute;
WGPUComputeState compute;
} WGPUComputePipelineDescriptor WGPU_STRUCTURE_ATTRIBUTE;

/**
Expand All @@ -3974,7 +3974,7 @@ typedef struct WGPUComputePipelineDescriptor {
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.layout=*/NULL _wgpu_COMMA \
/*.compute=*/WGPU_COMPUTE_STAGE_INIT _wgpu_COMMA \
/*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
})

/**
Expand Down
4 changes: 2 additions & 2 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1862,8 +1862,8 @@ structs:
- name: compute
doc: |
TODO
type: struct.compute_stage
- name: compute_stage
type: struct.compute_state
- name: compute_state
doc: |
TODO
type: base_in
Expand Down

0 comments on commit 39ed517

Please sign in to comment.