Document new WGSL language extensions from engine v2.19.0#1002
Merged
Conversation
Add four WGSL language-feature device caps that the engine now detects and injects `requires …;` directives for, to the WGSL Specifics page: - unrestricted_pointer_parameters (CAPS_UNRESTRICTED_POINTER_PARAMETERS) - pointer_composite_access (CAPS_POINTER_COMPOSITE_ACCESS) - packed_4x8_integer_dot_product (CAPS_PACKED_4X8_INTEGER_DOT_PRODUCT) - texture_and_sampler_let (CAPS_TEXTURE_AND_SAMPLER_LET) Verified names, injected directives, and CAPS defines against the engine source (graphics-device.js, shader-definition-utils.js). Mirrored across the Japanese (i18n/ja) docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Engine v2.19.0 added detection for several more WGSL language features (device caps that auto-inject
requires …;directives). This adds them to the WGSL Specifics → WGSL language extensions list.New entries (each injected for vertex/fragment/compute):
device.supportsUnrestrictedPointerParameters→requires unrestricted_pointer_parameters;/CAPS_UNRESTRICTED_POINTER_PARAMETERS(PR #8785)device.supportsPointerCompositeAccess→requires pointer_composite_access;/CAPS_POINTER_COMPOSITE_ACCESS(PR #8786)device.supportsPacked4x8IntegerDotProduct→requires packed_4x8_integer_dot_product;/CAPS_PACKED_4X8_INTEGER_DOT_PRODUCT(PR #8787)device.supportsTextureAndSamplerLet→requires texture_and_sampler_let;/CAPS_TEXTURE_AND_SAMPLER_LET(PR #8790)The release's other WGSL change (
linear_indexing+CAPS_STORAGE_TEXTURE_READ, PR #8648) was already documented.Names, injected directives, and CAPS defines verified against the engine source (
graphics-device.js,shader-definition-utils.js). Mirrored across the Japanese (i18n/ja) docs.