Skip to content

Commit

Permalink
Make GPUProgrammableStage entryPoint optional (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored Nov 27, 2023
1 parent 7f1bb11 commit d02fec1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ typedef struct WGPUImageCopyTexture {
typedef struct WGPUProgrammableStageDescriptor {
WGPUChainedStruct const * nextInChain;
WGPUShaderModule module;
char const * entryPoint;
WGPU_NULLABLE char const * entryPoint;
size_t constantCount;
WGPUConstantEntry const * constants;
} WGPUProgrammableStageDescriptor WGPU_STRUCTURE_ATTRIBUTE;
Expand Down Expand Up @@ -1301,7 +1301,7 @@ typedef struct WGPURenderPassDescriptor {
typedef struct WGPUVertexState {
WGPUChainedStruct const * nextInChain;
WGPUShaderModule module;
char const * entryPoint;
WGPU_NULLABLE char const * entryPoint;
size_t constantCount;
WGPUConstantEntry const * constants;
size_t bufferCount;
Expand All @@ -1311,7 +1311,7 @@ typedef struct WGPUVertexState {
typedef struct WGPUFragmentState {
WGPUChainedStruct const * nextInChain;
WGPUShaderModule module;
char const * entryPoint;
WGPU_NULLABLE char const * entryPoint;
size_t constantCount;
WGPUConstantEntry const * constants;
size_t targetCount;
Expand Down

0 comments on commit d02fec1

Please sign in to comment.