Skip to content

Commit

Permalink
WGPUComputeStage -> WGPUComputeState
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Nov 26, 2024
1 parent 7304549 commit a15d870
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
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 @@ -1860,8 +1860,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 a15d870

Please sign in to comment.