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

[proposal] Change SetBlendConstant to take 4 floats #394

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"doc": {
"type": "string",
"$comment": "Doxygen doesn't support multi-paragraph param docs (containing \\n\\n)",
"pattern": "^\n?.+(\n.+)*\n?$"
"pattern": "^$|^\n?.+(\n.+)*\n?$"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -2885,7 +2885,7 @@ typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder rend
* Proc pointer type for @ref wgpuRenderPassEncoderSetBlendConstant:
* > @copydoc wgpuRenderPassEncoderSetBlendConstant
*/
typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, float r, float g, float b, float a) WGPU_FUNCTION_ATTRIBUTE;
/**
* Proc pointer type for @ref wgpuRenderPassEncoderSetIndexBuffer:
* > @copydoc wgpuRenderPassEncoderSetIndexBuffer
Expand Down Expand Up @@ -3563,7 +3563,7 @@ WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder re
WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, float r, float g, float b, float a) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
Expand Down
17 changes: 12 additions & 5 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4516,11 +4516,18 @@ objects:
doc: |
TODO
args:
- name: color
doc: |
TODO
type: struct.color
pointer: immutable
- name: r
doc: ''
type: float32
- name: g
doc: ''
type: float32
- name: b
doc: ''
type: float32
- name: a
doc: ''
type: float32
- name: set_viewport
doc: |
TODO
Expand Down
Loading