diff --git a/dist/index.d.ts b/dist/index.d.ts index 3ed49db..0e6f86e 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -261,7 +261,10 @@ type GPUStencilOperation = | "increment-wrap" | "decrement-wrap"; type GPUStorageTextureAccess = - "write-only"; + + | "write-only" + | "read-only" + | "read-write"; type GPUStoreOp = | "store" @@ -1116,6 +1119,11 @@ interface GPURenderPassColorAttachment { * color attachment. */ view: GPUTextureView; + /** + * Indicates the depth slice index of {@link GPUTextureViewDimension#"3d"} {@link GPURenderPassColorAttachment#view} + * that will be output to for this color attachment. + */ + depthSlice?: GPUIntegerCoordinate; /** * A {@link GPUTextureView} describing the texture subresource that will receive the resolved * output for this color attachment if {@link GPURenderPassColorAttachment#view} is @@ -1382,6 +1390,7 @@ interface GPUSamplerDescriptor } interface GPUShaderModuleCompilationHint { + entryPoint: string; /** * A {@link GPUPipelineLayout} that the {@link GPUShaderModule} may be used with in a future * {@link GPUDevice#createComputePipeline()} or {@link GPUDevice#createRenderPipeline} call. @@ -1407,25 +1416,31 @@ interface GPUShaderModuleDescriptor * WGSL names (identifiers) in source maps follow the rules defined in WGSL identifier * comparison. */ - sourceMap?: object; + sourceMap?: any; /** - * If defined maps an entry point name from the shader to a {@link GPUShaderModuleCompilationHint}. - * No validation is performed with any of these {@link GPUShaderModuleCompilationHint}. - * Implementations should use any information present in the {@link GPUShaderModuleCompilationHint} + * A list of {@link GPUShaderModuleCompilationHint}s. + * Any hint provided by an application **should** contain information about one entry point of + * a pipeline that will eventually be created from the entry point. + * Implementations **should** use any information present in the {@link GPUShaderModuleCompilationHint} * to perform as much compilation as is possible within {@link GPUDevice#createShaderModule}. - * Entry point names follow the rules defined in WGSL identifier comparison. - * Note: Supplying information in {@link GPUShaderModuleDescriptor#hints} does not have any - * observable effect, other than performance. Because a single shader module can hold + * Aside from type-checking, these hints are not validated in any way. + *
Editorial: + *
Editorial note: * At the time of this writing, no language/direction recommendation is available that provides * compatibility and consistency with legacy APIs, but when there is, adopt it formally. */ @@ -2541,7 +2541,7 @@ interface GPUError { * Note: The {@link GPUError#message} should follow the best practices for language and * direction information. This includes making use of any future standards which may emerge * regarding the reporting of string language and direction metadata. - *
Editorial: + *
Editorial note: * At the time of this writing, no language/direction recommendation is available that provides * compatibility and consistency with legacy APIs, but when there is, adopt it formally. */ diff --git a/generated/index.d.ts b/generated/index.d.ts index 58502c0..7c3abb9 100644 --- a/generated/index.d.ts +++ b/generated/index.d.ts @@ -207,7 +207,10 @@ type GPUStencilOperation = | "increment-wrap" | "decrement-wrap"; type GPUStorageTextureAccess = - "write-only"; + + | "write-only" + | "read-only" + | "read-write"; type GPUStoreOp = | "store" @@ -1104,6 +1107,11 @@ interface GPURenderPassColorAttachment { * color attachment. */ view: GPUTextureView; + /** + * Indicates the depth slice index of {@link GPUTextureViewDimension#"3d"} {@link GPURenderPassColorAttachment#view} + * that will be output to for this color attachment. + */ + depthSlice?: GPUIntegerCoordinate; /** * A {@link GPUTextureView} describing the texture subresource that will receive the resolved * output for this color attachment if {@link GPURenderPassColorAttachment#view} is @@ -1341,6 +1349,7 @@ interface GPUSamplerDescriptor } interface GPUShaderModuleCompilationHint { + entryPoint: string; /** * A {@link GPUPipelineLayout} that the {@link GPUShaderModule} may be used with in a future * {@link GPUDevice#createComputePipeline()} or {@link GPUDevice#createRenderPipeline} call. @@ -1368,23 +1377,29 @@ interface GPUShaderModuleDescriptor */ sourceMap?: any; /** - * If defined maps an entry point name from the shader to a {@link GPUShaderModuleCompilationHint}. - * No validation is performed with any of these {@link GPUShaderModuleCompilationHint}. - * Implementations should use any information present in the {@link GPUShaderModuleCompilationHint} + * A list of {@link GPUShaderModuleCompilationHint}s. + * Any hint provided by an application **should** contain information about one entry point of + * a pipeline that will eventually be created from the entry point. + * Implementations **should** use any information present in the {@link GPUShaderModuleCompilationHint} * to perform as much compilation as is possible within {@link GPUDevice#createShaderModule}. - * Entry point names follow the rules defined in WGSL identifier comparison. - * Note: Supplying information in {@link GPUShaderModuleDescriptor#hints} does not have any - * observable effect, other than performance. Because a single shader module can hold + * Aside from type-checking, these hints are not validated in any way. + *
Editorial: + *
Editorial note: * At the time of this writing, no language/direction recommendation is available that provides * compatibility and consistency with legacy APIs, but when there is, adopt it formally. */ @@ -2436,7 +2436,7 @@ interface GPUError { * Note: The {@link GPUError#message} should follow the best practices for language and * direction information. This includes making use of any future standards which may emerge * regarding the reporting of string language and direction metadata. - *
Editorial: + *
Editorial note: * At the time of this writing, no language/direction recommendation is available that provides * compatibility and consistency with legacy APIs, but when there is, adopt it formally. */ diff --git a/gpuweb b/gpuweb index be0515f..56a0db1 160000 --- a/gpuweb +++ b/gpuweb @@ -1 +1 @@ -Subproject commit be0515f355e1ba9cf2f3c79f4c03d9eced802948 +Subproject commit 56a0db1669c7e4fe1d45e476e7800e4953f04bf9