Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fold DepthClipControl into PrimitiveState #311

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ struct WGPULimits;
struct WGPUMultisampleState;
struct WGPUOrigin3D;
struct WGPUPipelineLayoutDescriptor;
struct WGPUPrimitiveDepthClipControl;
struct WGPUPrimitiveState;
struct WGPUQuerySetDescriptor;
struct WGPUQueueDescriptor;
Expand Down Expand Up @@ -468,10 +467,9 @@ typedef enum WGPUSType {
WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector = 0x00000004,
WGPUSType_ShaderModuleSPIRVDescriptor = 0x00000005,
WGPUSType_ShaderModuleWGSLDescriptor = 0x00000006,
WGPUSType_PrimitiveDepthClipControl = 0x00000007,
WGPUSType_SurfaceDescriptorFromWaylandSurface = 0x00000008,
WGPUSType_SurfaceDescriptorFromAndroidNativeWindow = 0x00000009,
WGPUSType_SurfaceDescriptorFromXcbWindow = 0x0000000A,
WGPUSType_SurfaceDescriptorFromWaylandSurface = 0x00000007,
WGPUSType_SurfaceDescriptorFromAndroidNativeWindow = 0x00000008,
WGPUSType_SurfaceDescriptorFromXcbWindow = 0x00000009,
WGPUSType_RenderPassDescriptorMaxDrawCount = 0x0000000F,
WGPUSType_Force32 = 0x7FFFFFFF
} WGPUSType WGPU_ENUM_ATTRIBUTE;
Expand Down Expand Up @@ -971,17 +969,13 @@ typedef struct WGPUPipelineLayoutDescriptor {
WGPUBindGroupLayout const * bindGroupLayouts;
} WGPUPipelineLayoutDescriptor WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUPrimitiveDepthClipControl {
WGPUChainedStruct chain;
WGPUBool unclippedDepth;
} WGPUPrimitiveDepthClipControl WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUPrimitiveState {
WGPUChainedStruct const * nextInChain;
WGPUPrimitiveTopology topology;
WGPUIndexFormat stripIndexFormat;
WGPUFrontFace frontFace;
WGPUCullMode cullMode;
WGPUBool unclippedDepth;
} WGPUPrimitiveState WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUQuerySetDescriptor {
Expand Down
18 changes: 4 additions & 14 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,6 @@ enums:
- name: shader_module_WGSL_descriptor
doc: |
TODO
- name: primitive_depth_clip_control
doc: |
TODO
- name: surface_descriptor_from_wayland_surface
doc: |
TODO
Expand Down Expand Up @@ -2091,17 +2088,6 @@ structs:
TODO
type: array<object.bind_group_layout>
pointer: immutable
- name: primitive_depth_clip_control
doc: |
TODO
type: extension_in
extends:
- primitive_state
members:
- name: unclipped_depth
doc: |
TODO
type: bool
- name: primitive_state
doc: |
TODO
Expand All @@ -2123,6 +2109,10 @@ structs:
doc: |
TODO
type: enum.cull_mode
- name: unclipped_depth
doc: |
TODO
type: bool
- name: programmable_stage_descriptor
doc: |
TODO
Expand Down
Loading