mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
Roll third_party/gpuweb to 1f8a05a
Fixup Dawn node as necessary. Change-Id: I96b9a078adba1c8988f9bc5835e1f7645c67a57d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/123501 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
783285fa1c
commit
55509fae00
@@ -1659,6 +1659,9 @@ bool Converter::Convert(wgpu::FeatureName& out, interop::GPUFeatureName in) {
|
||||
case interop::GPUFeatureName::kBgra8UnormStorage:
|
||||
out = wgpu::FeatureName::BGRA8UnormStorage;
|
||||
return true;
|
||||
case interop::GPUFeatureName::kFloat32Filterable:
|
||||
UNIMPLEMENTED("TODO(crbug.com/dawn/1687)");
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ namespace wgpu::binding {
|
||||
GPUShaderModule::GPUShaderModule(wgpu::ShaderModule shader, std::shared_ptr<AsyncRunner> async)
|
||||
: shader_(std::move(shader)), async_(std::move(async)) {}
|
||||
|
||||
interop::Promise<interop::Interface<interop::GPUCompilationInfo>> GPUShaderModule::compilationInfo(
|
||||
Napi::Env env) {
|
||||
interop::Promise<interop::Interface<interop::GPUCompilationInfo>>
|
||||
GPUShaderModule::getCompilationInfo(Napi::Env env) {
|
||||
struct GPUCompilationMessage : public interop::GPUCompilationMessage {
|
||||
WGPUCompilationMessage message;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ class GPUShaderModule final : public interop::GPUShaderModule {
|
||||
inline operator const wgpu::ShaderModule&() const { return shader_; }
|
||||
|
||||
// interop::GPUShaderModule interface compliance
|
||||
interop::Promise<interop::Interface<interop::GPUCompilationInfo>> compilationInfo(
|
||||
interop::Promise<interop::Interface<interop::GPUCompilationInfo>> getCompilationInfo(
|
||||
Napi::Env) override;
|
||||
std::string getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::string value) override;
|
||||
|
||||
@@ -148,4 +148,8 @@ uint32_t GPUSupportedLimits::getMaxComputeWorkgroupsPerDimension(Napi::Env) {
|
||||
return limits_.limits.maxComputeWorkgroupsPerDimension;
|
||||
}
|
||||
|
||||
uint32_t GPUSupportedLimits::getMaxFragmentCombinedOutputResources(Napi::Env) {
|
||||
return limits_.limits.maxFragmentCombinedOutputResources;
|
||||
}
|
||||
|
||||
} // namespace wgpu::binding
|
||||
|
||||
@@ -60,6 +60,7 @@ class GPUSupportedLimits final : public interop::GPUSupportedLimits {
|
||||
uint32_t getMaxComputeWorkgroupSizeY(Napi::Env) override;
|
||||
uint32_t getMaxComputeWorkgroupSizeZ(Napi::Env) override;
|
||||
uint32_t getMaxComputeWorkgroupsPerDimension(Napi::Env) override;
|
||||
uint32_t getMaxFragmentCombinedOutputResources(Napi::Env) override;
|
||||
|
||||
private:
|
||||
wgpu::SupportedLimits limits_;
|
||||
|
||||
@@ -87,4 +87,6 @@ typedef(ArrayBufferView or ArrayBuffer) BufferSource;
|
||||
|
||||
[LegacyNoInterfaceObject] interface EventHandler{};
|
||||
|
||||
[LegacyNoInterfaceObject] interface DOMException {};
|
||||
|
||||
enum PredefinedColorSpace { "srgb", "display-p3" };
|
||||
|
||||
Reference in New Issue
Block a user