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

[wgsl] Add text around entry point function. #906

Merged
merged 1 commit into from
Jul 14, 2020
Merged

[wgsl] Add text around entry point function. #906

merged 1 commit into from
Jul 14, 2020

Conversation

dj2
Copy link
Member

@dj2 dj2 commented Jul 6, 2020

This CL adds restrictions on the WGSL entry point functions to accept no
parameters and to return void.

Fixes #778
Issue #889

This CL adds restrictions on the WGSL entry point functions to accept no
parameters and to return void.

Fixes #778
Issue #889
@dj2 dj2 added wgsl WebGPU Shading Language Issues for wgsl meeting labels Jul 6, 2020
@dj2 dj2 self-assigned this Jul 6, 2020
@@ -988,6 +988,8 @@ file.
The input and output parameters to the entry point are determined by which
global variables are used in the function and any called functions.

The entry point function must be declared with no arguments and returning `void`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much related to #889 (comment) :)

@grorg grorg added this to For Next Meeting in WGSL Jul 14, 2020
@grorg
Copy link
Contributor

grorg commented Jul 14, 2020

Discussed at the 2020-07-14 meeting.

Resolved to accept this PR.

@kdashg kdashg merged commit 3781441 into gpuweb:main Jul 14, 2020
WGSL automation moved this from For Next Meeting to Done Jul 14, 2020
@dj2 dj2 deleted the ep branch September 16, 2020 13:44
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
In this PR the vertex step mode vertex buffer OOB validation in draw calls is tested. It test that encoder.draw will validate vertex step mode vertex buffer satisfing `bound size >= (strideCount - 1) * arrayStride + lastStride` iif strideCount > 0, and other draw call types do not validate vertex step mode vertex buffer OOB.

Issue: gpuweb#906
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
This PR shorten the parameter names of
webgpu:api,validation,encoding,cmds,render,draw:vertex_buffer_OOB,
making sure that the full test case names with paramters are no longer
than 200. If the test case name is too long, it will cause name of
artifact logging file exceed the file name length limitation in Linux.

Issue: gpuweb#906
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wgsl WebGPU Shading Language Issues
Projects
WGSL
Done
Development

Successfully merging this pull request may close these issues.

Task: Validation rules for entry points
5 participants