tint->dawn: Move src/dawn_node -> src/dawn/node
Bug: dawn:1275
Change-Id: I206287da7728788646929e696c756b43d53cf272
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/79063
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
diff --git a/.gitignore b/.gitignore
index 3453fb6..752f3ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -97,4 +97,4 @@
$RECYCLE.BIN/
### Dawn node tools binaries
-src/dawn_node/tools/bin/
+src/dawn/node/tools/bin/
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d561428..024cf45 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -237,7 +237,7 @@
message(FATAL_ERROR
"DAWN_BUILD_NODE_BINDINGS requires missing dependency '${DEP}'\n"
"Please follow the 'Fetch dependencies' instructions at:\n"
- "./src/dawn_node/README.md"
+ "./src/dawn/node/README.md"
)
endif()
endforeach()
@@ -245,5 +245,5 @@
message(FATAL_ERROR "DAWN_BUILD_NODE_BINDINGS requires building with DAWN_ENABLE_PIC")
endif()
- add_subdirectory(src/dawn_node)
+ add_subdirectory(src/dawn/node)
endif()
diff --git a/src/dawn_node/CMakeLists.txt b/src/dawn/node/CMakeLists.txt
similarity index 100%
rename from src/dawn_node/CMakeLists.txt
rename to src/dawn/node/CMakeLists.txt
diff --git a/src/dawn_node/Module.cpp b/src/dawn/node/Module.cpp
similarity index 96%
rename from src/dawn_node/Module.cpp
rename to src/dawn/node/Module.cpp
index 4f07c4d..f87631b 100644
--- a/src/dawn_node/Module.cpp
+++ b/src/dawn/node/Module.cpp
@@ -13,8 +13,8 @@
// limitations under the License.
#include "dawn/dawn_proc.h"
-#include "src/dawn_node/binding/Flags.h"
-#include "src/dawn_node/binding/GPU.h"
+#include "src/dawn/node/binding/Flags.h"
+#include "src/dawn/node/binding/GPU.h"
namespace {
Napi::Value CreateGPU(const Napi::CallbackInfo& info) {
diff --git a/src/dawn_node/NapiSymbols.cpp b/src/dawn/node/NapiSymbols.cpp
similarity index 97%
rename from src/dawn_node/NapiSymbols.cpp
rename to src/dawn/node/NapiSymbols.cpp
index 3c4aac1..a557eca 100644
--- a/src/dawn_node/NapiSymbols.cpp
+++ b/src/dawn/node/NapiSymbols.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
// To reduce the build dependencies for compiling the dawn.node targets, we do
// not use cmake-js for building, but instead just depend on node_api_headers.
diff --git a/src/dawn_node/OWNERS b/src/dawn/node/OWNERS
similarity index 100%
rename from src/dawn_node/OWNERS
rename to src/dawn/node/OWNERS
diff --git a/src/dawn_node/README.md b/src/dawn/node/README.md
similarity index 87%
rename from src/dawn_node/README.md
rename to src/dawn/node/README.md
index d9b1f68..1306d24 100644
--- a/src/dawn_node/README.md
+++ b/src/dawn/node/README.md
@@ -57,15 +57,15 @@
- Run `npm install` from inside the CTS directory to install its dependencies
```sh
-./src/dawn_node/tools/run-cts --cts=<path-to-webgpu-cts> --dawn-node=<path-to-dawn.node> [WebGPU CTS query]
+./src/dawn/node/tools/run-cts --cts=<path-to-webgpu-cts> --dawn-node=<path-to-dawn.node> [WebGPU CTS query]
```
If this fails with the error message `TypeError: expander is not a function or its return value is not iterable`, try appending `--build=false` to the start of the `run-cts` command line flags.
-To test against SwiftShader instead of the default Vulkan device, prefix `./src/dawn_node/tools/run-cts` with `VK_ICD_FILENAMES=<swiftshader-cmake-build>/Linux/vk_swiftshader_icd.json` and append `--flag=dawn-backend=vulkan` to the start of run-cts command line flags. For example:
+To test against SwiftShader instead of the default Vulkan device, prefix `./src/dawn/node/tools/run-cts` with `VK_ICD_FILENAMES=<swiftshader-cmake-build>/Linux/vk_swiftshader_icd.json` and append `--flag=dawn-backend=vulkan` to the start of run-cts command line flags. For example:
```sh
-VK_ICD_FILENAMES=<swiftshader-cmake-build>/Linux/vk_swiftshader_icd.json ./src/dawn_node/tools/run-cts --cts=<path-to-webgpu-cts> --dawn-node=<path-to-dawn.node> --flag=dawn-backend=vulkan [WebGPU CTS query]
+VK_ICD_FILENAMES=<swiftshader-cmake-build>/Linux/vk_swiftshader_icd.json ./src/dawn/node/tools/run-cts --cts=<path-to-webgpu-cts> --dawn-node=<path-to-dawn.node> --flag=dawn-backend=vulkan [WebGPU CTS query]
```
The `--flag` parameter must be passed in multiple times, once for each flag begin set. Here are some common arguments:
@@ -77,7 +77,7 @@
For example, on Windows, to use the d3dcompiler_47.dll from a Chromium checkout, and to dump shader output, we could run the following using Git Bash:
```sh
-./src/dawn_node/tools/run-cts --verbose --dawn-node=/c/src/dawn/build/Debug/dawn.node --cts=/c/src/gpuweb-cts --flag=dlldir="C:\src\chromium\src\out\Release" --flag=enable-dawn-features=dump_shaders 'webgpu:shader,execution,builtin,abs:integer_builtin_functions,abs_unsigned:storageClass="storage";storageMode="read_write";containerType="vector";isAtomic=false;baseType="u32";type="vec2%3Cu32%3E"'
+./src/dawn/node/tools/run-cts --verbose --dawn-node=/c/src/dawn/build/Debug/dawn.node --cts=/c/src/gpuweb-cts --flag=dlldir="C:\src\chromium\src\out\Release" --flag=enable-dawn-features=dump_shaders 'webgpu:shader,execution,builtin,abs:integer_builtin_functions,abs_unsigned:storageClass="storage";storageMode="read_write";containerType="vector";isAtomic=false;baseType="u32";type="vec2%3Cu32%3E"'
```
Note that we pass `--verbose` above so that all test output, including the dumped shader, is written to stdout.
@@ -122,14 +122,14 @@
## Known issues
- Many WebGPU CTS tests are currently known to fail
-- Dawn uses special token values for some parameters / fields. These are currently passed straight through to dawn from the JavaScript. discussions: [1](https://dawn-review.googlesource.com/c/dawn/+/64907/5/src/dawn_node/binding/Converter.cpp#167), [2](https://dawn-review.googlesource.com/c/dawn/+/64907/5/src/dawn_node/binding/Converter.cpp#928), [3](https://dawn-review.googlesource.com/c/dawn/+/64909/4/src/dawn_node/binding/GPUTexture.cpp#42)
-- Backend validation is currently always set to 'full' to aid in debugging. This can be extremely slow. [discussion](https://dawn-review.googlesource.com/c/dawn/+/64916/4/src/dawn_node/binding/GPU.cpp#25)
-- Attempting to call `new T` in JavaScript, where `T` is an IDL interface type, should result in a TypeError "Illegal constructor". [discussion](https://dawn-review.googlesource.com/c/dawn/+/64902/9/src/dawn_node/interop/WebGPU.cpp.tmpl#293)
-- `GPUDevice` currently maintains a list of "lost promises". This should return the same promise. [discussion](https://dawn-review.googlesource.com/c/dawn/+/64906/6/src/dawn_node/binding/GPUDevice.h#107)
+- Dawn uses special token values for some parameters / fields. These are currently passed straight through to dawn from the JavaScript. discussions: [1](https://dawn-review.googlesource.com/c/dawn/+/64907/5/src/dawn/node/binding/Converter.cpp#167), [2](https://dawn-review.googlesource.com/c/dawn/+/64907/5/src/dawn/node/binding/Converter.cpp#928), [3](https://dawn-review.googlesource.com/c/dawn/+/64909/4/src/dawn/node/binding/GPUTexture.cpp#42)
+- Backend validation is currently always set to 'full' to aid in debugging. This can be extremely slow. [discussion](https://dawn-review.googlesource.com/c/dawn/+/64916/4/src/dawn/node/binding/GPU.cpp#25)
+- Attempting to call `new T` in JavaScript, where `T` is an IDL interface type, should result in a TypeError "Illegal constructor". [discussion](https://dawn-review.googlesource.com/c/dawn/+/64902/9/src/dawn/node/interop/WebGPU.cpp.tmpl#293)
+- `GPUDevice` currently maintains a list of "lost promises". This should return the same promise. [discussion](https://dawn-review.googlesource.com/c/dawn/+/64906/6/src/dawn/node/binding/GPUDevice.h#107)
## Remaining work
- Investigate CTS failures that are not expected to fail.
-- Generated includes live in `src/` for `dawn_node`, but outside for Dawn. [discussion](https://dawn-review.googlesource.com/c/dawn/+/64903/9/src/dawn_node/interop/CMakeLists.txt#56)
+- Generated includes live in `src/` for `dawn/node`, but outside for Dawn. [discussion](https://dawn-review.googlesource.com/c/dawn/+/64903/9/src/dawn/node/interop/CMakeLists.txt#56)
- Hook up to presubmit bots (CQ / Kokoro)
-- `binding::GPU` will require significant rework [once Dawn implements the device / adapter creation path properly](https://dawn-review.googlesource.com/c/dawn/+/64916/4/src/dawn_node/binding/GPU.cpp).
+- `binding::GPU` will require significant rework [once Dawn implements the device / adapter creation path properly](https://dawn-review.googlesource.com/c/dawn/+/64916/4/src/dawn/node/binding/GPU.cpp).
diff --git a/src/dawn_node/binding/AsyncRunner.cpp b/src/dawn/node/binding/AsyncRunner.cpp
similarity index 97%
rename from src/dawn_node/binding/AsyncRunner.cpp
rename to src/dawn/node/binding/AsyncRunner.cpp
index 94382d1..a978fa8 100644
--- a/src/dawn_node/binding/AsyncRunner.cpp
+++ b/src/dawn/node/binding/AsyncRunner.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/AsyncRunner.h"
+#include "src/dawn/node/binding/AsyncRunner.h"
#include <cassert>
#include <limits>
diff --git a/src/dawn_node/binding/AsyncRunner.h b/src/dawn/node/binding/AsyncRunner.h
similarity index 100%
rename from src/dawn_node/binding/AsyncRunner.h
rename to src/dawn/node/binding/AsyncRunner.h
diff --git a/src/dawn_node/binding/CMakeLists.txt b/src/dawn/node/binding/CMakeLists.txt
similarity index 100%
rename from src/dawn_node/binding/CMakeLists.txt
rename to src/dawn/node/binding/CMakeLists.txt
diff --git a/src/dawn_node/binding/Converter.cpp b/src/dawn/node/binding/Converter.cpp
similarity index 99%
rename from src/dawn_node/binding/Converter.cpp
rename to src/dawn/node/binding/Converter.cpp
index a0fc7e4..7387ce1 100644
--- a/src/dawn_node/binding/Converter.cpp
+++ b/src/dawn/node/binding/Converter.cpp
@@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/Converter.h"
+#include "src/dawn/node/binding/Converter.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPUPipelineLayout.h"
-#include "src/dawn_node/binding/GPUSampler.h"
-#include "src/dawn_node/binding/GPUShaderModule.h"
-#include "src/dawn_node/binding/GPUTexture.h"
-#include "src/dawn_node/binding/GPUTextureView.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPUPipelineLayout.h"
+#include "src/dawn/node/binding/GPUSampler.h"
+#include "src/dawn/node/binding/GPUShaderModule.h"
+#include "src/dawn/node/binding/GPUTexture.h"
+#include "src/dawn/node/binding/GPUTextureView.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/Converter.h b/src/dawn/node/binding/Converter.h
similarity index 99%
rename from src/dawn_node/binding/Converter.h
rename to src/dawn/node/binding/Converter.h
index 3af900a..29953df 100644
--- a/src/dawn_node/binding/Converter.h
+++ b/src/dawn/node/binding/Converter.h
@@ -21,8 +21,8 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/binding/Errors.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/binding/Errors.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/Errors.cpp b/src/dawn/node/binding/Errors.cpp
similarity index 99%
rename from src/dawn_node/binding/Errors.cpp
rename to src/dawn/node/binding/Errors.cpp
index 722be27..36cf203 100644
--- a/src/dawn_node/binding/Errors.cpp
+++ b/src/dawn/node/binding/Errors.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/Errors.h"
+#include "src/dawn/node/binding/Errors.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/Errors.h b/src/dawn/node/binding/Errors.h
similarity index 100%
rename from src/dawn_node/binding/Errors.h
rename to src/dawn/node/binding/Errors.h
diff --git a/src/dawn_node/binding/Flags.cpp b/src/dawn/node/binding/Flags.cpp
similarity index 95%
rename from src/dawn_node/binding/Flags.cpp
rename to src/dawn/node/binding/Flags.cpp
index 9985a49..40b0560 100644
--- a/src/dawn_node/binding/Flags.cpp
+++ b/src/dawn/node/binding/Flags.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/Flags.h"
+#include "src/dawn/node/binding/Flags.h"
namespace wgpu::binding {
void Flags::Set(const std::string& key, const std::string& value) {
diff --git a/src/dawn_node/binding/Flags.h b/src/dawn/node/binding/Flags.h
similarity index 100%
rename from src/dawn_node/binding/Flags.h
rename to src/dawn/node/binding/Flags.h
diff --git a/src/dawn_node/binding/GPU.cpp b/src/dawn/node/binding/GPU.cpp
similarity index 98%
rename from src/dawn_node/binding/GPU.cpp
rename to src/dawn/node/binding/GPU.cpp
index 4e18a91..43472ec 100644
--- a/src/dawn_node/binding/GPU.cpp
+++ b/src/dawn/node/binding/GPU.cpp
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPU.h"
+#include "src/dawn/node/binding/GPU.h"
-#include "src/dawn_node/binding/GPUAdapter.h"
+#include "src/dawn/node/binding/GPUAdapter.h"
#include <cstdlib>
diff --git a/src/dawn_node/binding/GPU.h b/src/dawn/node/binding/GPU.h
similarity index 93%
rename from src/dawn_node/binding/GPU.h
rename to src/dawn/node/binding/GPU.h
index c840b95..f33a0c4 100644
--- a/src/dawn_node/binding/GPU.h
+++ b/src/dawn/node/binding/GPU.h
@@ -18,8 +18,8 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/binding/Flags.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/binding/Flags.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
// GPU is an implementation of interop::GPU that wraps a dawn::native::Instance.
diff --git a/src/dawn_node/binding/GPUAdapter.cpp b/src/dawn/node/binding/GPUAdapter.cpp
similarity index 98%
rename from src/dawn_node/binding/GPUAdapter.cpp
rename to src/dawn/node/binding/GPUAdapter.cpp
index e91fb89..b8e97db 100644
--- a/src/dawn_node/binding/GPUAdapter.cpp
+++ b/src/dawn/node/binding/GPUAdapter.cpp
@@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUAdapter.h"
+#include "src/dawn/node/binding/GPUAdapter.h"
#include <unordered_set>
-#include "src/dawn_node/binding/Flags.h"
-#include "src/dawn_node/binding/GPUDevice.h"
-#include "src/dawn_node/binding/GPUSupportedLimits.h"
+#include "src/dawn/node/binding/Flags.h"
+#include "src/dawn/node/binding/GPUDevice.h"
+#include "src/dawn/node/binding/GPUSupportedLimits.h"
namespace {
// TODO(amaiorano): Move to utility header
diff --git a/src/dawn_node/binding/GPUAdapter.h b/src/dawn/node/binding/GPUAdapter.h
similarity index 97%
rename from src/dawn_node/binding/GPUAdapter.h
rename to src/dawn/node/binding/GPUAdapter.h
index 3bcd7d34..1498c16 100644
--- a/src/dawn_node/binding/GPUAdapter.h
+++ b/src/dawn/node/binding/GPUAdapter.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
class Flags;
diff --git a/src/dawn_node/binding/GPUBindGroup.cpp b/src/dawn/node/binding/GPUBindGroup.cpp
similarity index 92%
rename from src/dawn_node/binding/GPUBindGroup.cpp
rename to src/dawn/node/binding/GPUBindGroup.cpp
index 3e7b2a1..36b0929 100644
--- a/src/dawn_node/binding/GPUBindGroup.cpp
+++ b/src/dawn/node/binding/GPUBindGroup.cpp
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUBindGroup.h"
+#include "src/dawn/node/binding/GPUBindGroup.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUBindGroup.h b/src/dawn/node/binding/GPUBindGroup.h
similarity index 93%
rename from src/dawn_node/binding/GPUBindGroup.h
rename to src/dawn/node/binding/GPUBindGroup.h
index 342cf0d..10fc9fe 100644
--- a/src/dawn_node/binding/GPUBindGroup.h
+++ b/src/dawn/node/binding/GPUBindGroup.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -28,7 +28,7 @@
GPUBindGroup(wgpu::BindGroup group);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::BindGroup &() const {
+ inline operator const wgpu::BindGroup&() const {
return group_;
}
diff --git a/src/dawn_node/binding/GPUBindGroupLayout.cpp b/src/dawn/node/binding/GPUBindGroupLayout.cpp
similarity index 92%
rename from src/dawn_node/binding/GPUBindGroupLayout.cpp
rename to src/dawn/node/binding/GPUBindGroupLayout.cpp
index db32a57..6b1a5ab 100644
--- a/src/dawn_node/binding/GPUBindGroupLayout.cpp
+++ b/src/dawn/node/binding/GPUBindGroupLayout.cpp
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUBindGroupLayout.h"
+#include "src/dawn/node/binding/GPUBindGroupLayout.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUBindGroupLayout.h b/src/dawn/node/binding/GPUBindGroupLayout.h
similarity index 93%
rename from src/dawn_node/binding/GPUBindGroupLayout.h
rename to src/dawn/node/binding/GPUBindGroupLayout.h
index 92d476d..45373b4 100644
--- a/src/dawn_node/binding/GPUBindGroupLayout.h
+++ b/src/dawn/node/binding/GPUBindGroupLayout.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPUBindGroupLayout(wgpu::BindGroupLayout layout);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::BindGroupLayout &() const {
+ inline operator const wgpu::BindGroupLayout&() const {
return layout_;
}
diff --git a/src/dawn_node/binding/GPUBuffer.cpp b/src/dawn/node/binding/GPUBuffer.cpp
similarity index 97%
rename from src/dawn_node/binding/GPUBuffer.cpp
rename to src/dawn/node/binding/GPUBuffer.cpp
index 652c2e7..5f84bc1 100644
--- a/src/dawn_node/binding/GPUBuffer.cpp
+++ b/src/dawn/node/binding/GPUBuffer.cpp
@@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
#include <memory>
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/Errors.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/Errors.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUBuffer.h b/src/dawn/node/binding/GPUBuffer.h
similarity index 95%
rename from src/dawn_node/binding/GPUBuffer.h
rename to src/dawn/node/binding/GPUBuffer.h
index 7bc1d7e..35e1577 100644
--- a/src/dawn_node/binding/GPUBuffer.h
+++ b/src/dawn/node/binding/GPUBuffer.h
@@ -18,8 +18,8 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/binding/AsyncRunner.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/binding/AsyncRunner.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -37,7 +37,7 @@
}
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::Buffer &() const {
+ inline operator const wgpu::Buffer&() const {
return buffer_;
}
diff --git a/src/dawn_node/binding/GPUCommandBuffer.cpp b/src/dawn/node/binding/GPUCommandBuffer.cpp
similarity index 92%
rename from src/dawn_node/binding/GPUCommandBuffer.cpp
rename to src/dawn/node/binding/GPUCommandBuffer.cpp
index 9521871..ab0f708 100644
--- a/src/dawn_node/binding/GPUCommandBuffer.cpp
+++ b/src/dawn/node/binding/GPUCommandBuffer.cpp
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUCommandBuffer.h"
+#include "src/dawn/node/binding/GPUCommandBuffer.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUCommandBuffer.h b/src/dawn/node/binding/GPUCommandBuffer.h
similarity index 93%
rename from src/dawn_node/binding/GPUCommandBuffer.h
rename to src/dawn/node/binding/GPUCommandBuffer.h
index 89a6056..43bd2f8 100644
--- a/src/dawn_node/binding/GPUCommandBuffer.h
+++ b/src/dawn/node/binding/GPUCommandBuffer.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPUCommandBuffer(wgpu::CommandBuffer cmd_buf);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::CommandBuffer &() const {
+ inline operator const wgpu::CommandBuffer&() const {
return cmd_buf_;
}
diff --git a/src/dawn_node/binding/GPUCommandEncoder.cpp b/src/dawn/node/binding/GPUCommandEncoder.cpp
similarity index 93%
rename from src/dawn_node/binding/GPUCommandEncoder.cpp
rename to src/dawn/node/binding/GPUCommandEncoder.cpp
index b475de4..b6beee6 100644
--- a/src/dawn_node/binding/GPUCommandEncoder.cpp
+++ b/src/dawn/node/binding/GPUCommandEncoder.cpp
@@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUCommandEncoder.h"
+#include "src/dawn/node/binding/GPUCommandEncoder.h"
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/GPU.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPUCommandBuffer.h"
-#include "src/dawn_node/binding/GPUComputePassEncoder.h"
-#include "src/dawn_node/binding/GPUQuerySet.h"
-#include "src/dawn_node/binding/GPURenderPassEncoder.h"
-#include "src/dawn_node/binding/GPUTexture.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/GPU.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPUCommandBuffer.h"
+#include "src/dawn/node/binding/GPUComputePassEncoder.h"
+#include "src/dawn/node/binding/GPUQuerySet.h"
+#include "src/dawn/node/binding/GPURenderPassEncoder.h"
+#include "src/dawn/node/binding/GPUTexture.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUCommandEncoder.h b/src/dawn/node/binding/GPUCommandEncoder.h
similarity index 98%
rename from src/dawn_node/binding/GPUCommandEncoder.h
rename to src/dawn/node/binding/GPUCommandEncoder.h
index ed61526..b192f7b 100644
--- a/src/dawn_node/binding/GPUCommandEncoder.h
+++ b/src/dawn/node/binding/GPUCommandEncoder.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUComputePassEncoder.cpp b/src/dawn/node/binding/GPUComputePassEncoder.cpp
similarity index 91%
rename from src/dawn_node/binding/GPUComputePassEncoder.cpp
rename to src/dawn/node/binding/GPUComputePassEncoder.cpp
index 03145ee..4bc3a5c 100644
--- a/src/dawn_node/binding/GPUComputePassEncoder.cpp
+++ b/src/dawn/node/binding/GPUComputePassEncoder.cpp
@@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUComputePassEncoder.h"
+#include "src/dawn/node/binding/GPUComputePassEncoder.h"
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/GPUBindGroup.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPUComputePipeline.h"
-#include "src/dawn_node/binding/GPUQuerySet.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/GPUBindGroup.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPUComputePipeline.h"
+#include "src/dawn/node/binding/GPUQuerySet.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUComputePassEncoder.h b/src/dawn/node/binding/GPUComputePassEncoder.h
similarity index 96%
rename from src/dawn_node/binding/GPUComputePassEncoder.h
rename to src/dawn/node/binding/GPUComputePassEncoder.h
index f82280b..fc71533 100644
--- a/src/dawn_node/binding/GPUComputePassEncoder.h
+++ b/src/dawn/node/binding/GPUComputePassEncoder.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPUComputePassEncoder(wgpu::ComputePassEncoder enc);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::ComputePassEncoder &() const {
+ inline operator const wgpu::ComputePassEncoder&() const {
return enc_;
}
diff --git a/src/dawn_node/binding/GPUComputePipeline.cpp b/src/dawn/node/binding/GPUComputePipeline.cpp
similarity index 88%
rename from src/dawn_node/binding/GPUComputePipeline.cpp
rename to src/dawn/node/binding/GPUComputePipeline.cpp
index be6d1c3..9e57961 100644
--- a/src/dawn_node/binding/GPUComputePipeline.cpp
+++ b/src/dawn/node/binding/GPUComputePipeline.cpp
@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUComputePipeline.h"
+#include "src/dawn/node/binding/GPUComputePipeline.h"
-#include "src/dawn_node/binding/GPUBindGroupLayout.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/GPUBindGroupLayout.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUComputePipeline.h b/src/dawn/node/binding/GPUComputePipeline.h
similarity index 93%
rename from src/dawn_node/binding/GPUComputePipeline.h
rename to src/dawn/node/binding/GPUComputePipeline.h
index a4b8bca..0b763dd 100644
--- a/src/dawn_node/binding/GPUComputePipeline.h
+++ b/src/dawn/node/binding/GPUComputePipeline.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPUComputePipeline(wgpu::ComputePipeline pipeline);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::ComputePipeline &() const {
+ inline operator const wgpu::ComputePipeline&() const {
return pipeline_;
}
diff --git a/src/dawn_node/binding/GPUDevice.cpp b/src/dawn/node/binding/GPUDevice.cpp
similarity index 95%
rename from src/dawn_node/binding/GPUDevice.cpp
rename to src/dawn/node/binding/GPUDevice.cpp
index 2d09df7..2358b70 100644
--- a/src/dawn_node/binding/GPUDevice.cpp
+++ b/src/dawn/node/binding/GPUDevice.cpp
@@ -12,28 +12,28 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUDevice.h"
+#include "src/dawn/node/binding/GPUDevice.h"
#include <memory>
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/Errors.h"
-#include "src/dawn_node/binding/GPUBindGroup.h"
-#include "src/dawn_node/binding/GPUBindGroupLayout.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPUCommandBuffer.h"
-#include "src/dawn_node/binding/GPUCommandEncoder.h"
-#include "src/dawn_node/binding/GPUComputePipeline.h"
-#include "src/dawn_node/binding/GPUPipelineLayout.h"
-#include "src/dawn_node/binding/GPUQuerySet.h"
-#include "src/dawn_node/binding/GPUQueue.h"
-#include "src/dawn_node/binding/GPURenderBundleEncoder.h"
-#include "src/dawn_node/binding/GPURenderPipeline.h"
-#include "src/dawn_node/binding/GPUSampler.h"
-#include "src/dawn_node/binding/GPUShaderModule.h"
-#include "src/dawn_node/binding/GPUSupportedLimits.h"
-#include "src/dawn_node/binding/GPUTexture.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/Errors.h"
+#include "src/dawn/node/binding/GPUBindGroup.h"
+#include "src/dawn/node/binding/GPUBindGroupLayout.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPUCommandBuffer.h"
+#include "src/dawn/node/binding/GPUCommandEncoder.h"
+#include "src/dawn/node/binding/GPUComputePipeline.h"
+#include "src/dawn/node/binding/GPUPipelineLayout.h"
+#include "src/dawn/node/binding/GPUQuerySet.h"
+#include "src/dawn/node/binding/GPUQueue.h"
+#include "src/dawn/node/binding/GPURenderBundleEncoder.h"
+#include "src/dawn/node/binding/GPURenderPipeline.h"
+#include "src/dawn/node/binding/GPUSampler.h"
+#include "src/dawn/node/binding/GPUShaderModule.h"
+#include "src/dawn/node/binding/GPUSupportedLimits.h"
+#include "src/dawn/node/binding/GPUTexture.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUDevice.h b/src/dawn/node/binding/GPUDevice.h
similarity index 98%
rename from src/dawn_node/binding/GPUDevice.h
rename to src/dawn/node/binding/GPUDevice.h
index 368f86b..84ba67d 100644
--- a/src/dawn_node/binding/GPUDevice.h
+++ b/src/dawn/node/binding/GPUDevice.h
@@ -17,8 +17,8 @@
#include "dawn/webgpu_cpp.h"
#include "napi.h"
-#include "src/dawn_node/binding/AsyncRunner.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/binding/AsyncRunner.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
// GPUDevice is an implementation of interop::GPUDevice that wraps a wgpu::Device.
diff --git a/src/dawn_node/binding/GPUPipelineLayout.cpp b/src/dawn/node/binding/GPUPipelineLayout.cpp
similarity index 92%
rename from src/dawn_node/binding/GPUPipelineLayout.cpp
rename to src/dawn/node/binding/GPUPipelineLayout.cpp
index 712e3fe..945fb4a 100644
--- a/src/dawn_node/binding/GPUPipelineLayout.cpp
+++ b/src/dawn/node/binding/GPUPipelineLayout.cpp
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUPipelineLayout.h"
+#include "src/dawn/node/binding/GPUPipelineLayout.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUPipelineLayout.h b/src/dawn/node/binding/GPUPipelineLayout.h
similarity index 93%
rename from src/dawn_node/binding/GPUPipelineLayout.h
rename to src/dawn/node/binding/GPUPipelineLayout.h
index 02f07c1..fab2215 100644
--- a/src/dawn_node/binding/GPUPipelineLayout.h
+++ b/src/dawn/node/binding/GPUPipelineLayout.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPUPipelineLayout(wgpu::PipelineLayout layout);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::PipelineLayout &() const {
+ inline operator const wgpu::PipelineLayout&() const {
return layout_;
}
diff --git a/src/dawn_node/binding/GPUQuerySet.cpp b/src/dawn/node/binding/GPUQuerySet.cpp
similarity index 93%
rename from src/dawn_node/binding/GPUQuerySet.cpp
rename to src/dawn/node/binding/GPUQuerySet.cpp
index 836faf9..b0714f4 100644
--- a/src/dawn_node/binding/GPUQuerySet.cpp
+++ b/src/dawn/node/binding/GPUQuerySet.cpp
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUQuerySet.h"
+#include "src/dawn/node/binding/GPUQuerySet.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUQuerySet.h b/src/dawn/node/binding/GPUQuerySet.h
similarity index 93%
rename from src/dawn_node/binding/GPUQuerySet.h
rename to src/dawn/node/binding/GPUQuerySet.h
index 46d8097..793b851 100644
--- a/src/dawn_node/binding/GPUQuerySet.h
+++ b/src/dawn/node/binding/GPUQuerySet.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -28,7 +28,7 @@
GPUQuerySet(wgpu::QuerySet query_set);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::QuerySet &() const {
+ inline operator const wgpu::QuerySet&() const {
return query_set_;
}
diff --git a/src/dawn_node/binding/GPUQueue.cpp b/src/dawn/node/binding/GPUQueue.cpp
similarity index 95%
rename from src/dawn_node/binding/GPUQueue.cpp
rename to src/dawn/node/binding/GPUQueue.cpp
index 3b0f681..e7f7a72 100644
--- a/src/dawn_node/binding/GPUQueue.cpp
+++ b/src/dawn/node/binding/GPUQueue.cpp
@@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUQueue.h"
+#include "src/dawn/node/binding/GPUQueue.h"
#include <memory>
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPUCommandBuffer.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPUCommandBuffer.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUQueue.h b/src/dawn/node/binding/GPUQueue.h
similarity index 96%
rename from src/dawn_node/binding/GPUQueue.h
rename to src/dawn/node/binding/GPUQueue.h
index f59b19f..b048837 100644
--- a/src/dawn_node/binding/GPUQueue.h
+++ b/src/dawn/node/binding/GPUQueue.h
@@ -18,8 +18,8 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/binding/AsyncRunner.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/binding/AsyncRunner.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPURenderBundle.cpp b/src/dawn/node/binding/GPURenderBundle.cpp
similarity index 80%
rename from src/dawn_node/binding/GPURenderBundle.cpp
rename to src/dawn/node/binding/GPURenderBundle.cpp
index f49c9007..c136d03 100644
--- a/src/dawn_node/binding/GPURenderBundle.cpp
+++ b/src/dawn/node/binding/GPURenderBundle.cpp
@@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPURenderBundle.h"
+#include "src/dawn/node/binding/GPURenderBundle.h"
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPURenderBundle.h"
-#include "src/dawn_node/binding/GPURenderPipeline.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPURenderBundle.h"
+#include "src/dawn/node/binding/GPURenderPipeline.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPURenderBundle.h b/src/dawn/node/binding/GPURenderBundle.h
similarity index 93%
rename from src/dawn_node/binding/GPURenderBundle.h
rename to src/dawn/node/binding/GPURenderBundle.h
index bde0b50..6c7948e 100644
--- a/src/dawn_node/binding/GPURenderBundle.h
+++ b/src/dawn/node/binding/GPURenderBundle.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPURenderBundle(wgpu::RenderBundle bundle);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::RenderBundle &() const {
+ inline operator const wgpu::RenderBundle&() const {
return bundle_;
}
diff --git a/src/dawn_node/binding/GPURenderBundleEncoder.cpp b/src/dawn/node/binding/GPURenderBundleEncoder.cpp
similarity index 95%
rename from src/dawn_node/binding/GPURenderBundleEncoder.cpp
rename to src/dawn/node/binding/GPURenderBundleEncoder.cpp
index fcd7219..6c3fe99 100644
--- a/src/dawn_node/binding/GPURenderBundleEncoder.cpp
+++ b/src/dawn/node/binding/GPURenderBundleEncoder.cpp
@@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPURenderBundleEncoder.h"
+#include "src/dawn/node/binding/GPURenderBundleEncoder.h"
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/GPUBindGroup.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPURenderBundle.h"
-#include "src/dawn_node/binding/GPURenderPipeline.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/GPUBindGroup.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPURenderBundle.h"
+#include "src/dawn/node/binding/GPURenderPipeline.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPURenderBundleEncoder.h b/src/dawn/node/binding/GPURenderBundleEncoder.h
similarity index 98%
rename from src/dawn_node/binding/GPURenderBundleEncoder.h
rename to src/dawn/node/binding/GPURenderBundleEncoder.h
index 9a4dbcb..11ced26 100644
--- a/src/dawn_node/binding/GPURenderBundleEncoder.h
+++ b/src/dawn/node/binding/GPURenderBundleEncoder.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPURenderPassEncoder.cpp b/src/dawn/node/binding/GPURenderPassEncoder.cpp
similarity index 95%
rename from src/dawn_node/binding/GPURenderPassEncoder.cpp
rename to src/dawn/node/binding/GPURenderPassEncoder.cpp
index 3306259..8308431 100644
--- a/src/dawn_node/binding/GPURenderPassEncoder.cpp
+++ b/src/dawn/node/binding/GPURenderPassEncoder.cpp
@@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPURenderPassEncoder.h"
+#include "src/dawn/node/binding/GPURenderPassEncoder.h"
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/GPUBindGroup.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/binding/GPUQuerySet.h"
-#include "src/dawn_node/binding/GPURenderBundle.h"
-#include "src/dawn_node/binding/GPURenderPipeline.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/GPUBindGroup.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/binding/GPUQuerySet.h"
+#include "src/dawn/node/binding/GPURenderBundle.h"
+#include "src/dawn/node/binding/GPURenderPipeline.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPURenderPassEncoder.h b/src/dawn/node/binding/GPURenderPassEncoder.h
similarity index 97%
rename from src/dawn_node/binding/GPURenderPassEncoder.h
rename to src/dawn/node/binding/GPURenderPassEncoder.h
index ecca2fb..437b10b 100644
--- a/src/dawn_node/binding/GPURenderPassEncoder.h
+++ b/src/dawn/node/binding/GPURenderPassEncoder.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPURenderPassEncoder(wgpu::RenderPassEncoder enc);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::RenderPassEncoder &() const {
+ inline operator const wgpu::RenderPassEncoder&() const {
return enc_;
}
diff --git a/src/dawn_node/binding/GPURenderPipeline.cpp b/src/dawn/node/binding/GPURenderPipeline.cpp
similarity index 88%
rename from src/dawn_node/binding/GPURenderPipeline.cpp
rename to src/dawn/node/binding/GPURenderPipeline.cpp
index 9683b80..58003d9 100644
--- a/src/dawn_node/binding/GPURenderPipeline.cpp
+++ b/src/dawn/node/binding/GPURenderPipeline.cpp
@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPURenderPipeline.h"
+#include "src/dawn/node/binding/GPURenderPipeline.h"
-#include "src/dawn_node/binding/GPUBindGroupLayout.h"
-#include "src/dawn_node/binding/GPUBuffer.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/GPUBindGroupLayout.h"
+#include "src/dawn/node/binding/GPUBuffer.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPURenderPipeline.h b/src/dawn/node/binding/GPURenderPipeline.h
similarity index 93%
rename from src/dawn_node/binding/GPURenderPipeline.h
rename to src/dawn/node/binding/GPURenderPipeline.h
index acb8c53..78a5c09 100644
--- a/src/dawn_node/binding/GPURenderPipeline.h
+++ b/src/dawn/node/binding/GPURenderPipeline.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPURenderPipeline(wgpu::RenderPipeline pipeline);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::RenderPipeline &() const {
+ inline operator const wgpu::RenderPipeline&() const {
return pipeline_;
}
diff --git a/src/dawn_node/binding/GPUSampler.cpp b/src/dawn/node/binding/GPUSampler.cpp
similarity index 89%
rename from src/dawn_node/binding/GPUSampler.cpp
rename to src/dawn/node/binding/GPUSampler.cpp
index 39d87a0..70f6536 100644
--- a/src/dawn_node/binding/GPUSampler.cpp
+++ b/src/dawn/node/binding/GPUSampler.cpp
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUSampler.h"
+#include "src/dawn/node/binding/GPUSampler.h"
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUSampler.h b/src/dawn/node/binding/GPUSampler.h
similarity index 93%
rename from src/dawn_node/binding/GPUSampler.h
rename to src/dawn/node/binding/GPUSampler.h
index 9bae388..1b925b0 100644
--- a/src/dawn_node/binding/GPUSampler.h
+++ b/src/dawn/node/binding/GPUSampler.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
// GPUSampler is an implementation of interop::GPUSampler that wraps a wgpu::Sampler.
@@ -27,7 +27,7 @@
GPUSampler(wgpu::Sampler sampler);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::Sampler &() const {
+ inline operator const wgpu::Sampler&() const {
return sampler_;
}
diff --git a/src/dawn_node/binding/GPUShaderModule.cpp b/src/dawn/node/binding/GPUShaderModule.cpp
similarity index 97%
rename from src/dawn_node/binding/GPUShaderModule.cpp
rename to src/dawn/node/binding/GPUShaderModule.cpp
index 6ac6645..a889fdb 100644
--- a/src/dawn_node/binding/GPUShaderModule.cpp
+++ b/src/dawn/node/binding/GPUShaderModule.cpp
@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUShaderModule.h"
+#include "src/dawn/node/binding/GPUShaderModule.h"
#include <memory>
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUShaderModule.h b/src/dawn/node/binding/GPUShaderModule.h
similarity index 91%
rename from src/dawn_node/binding/GPUShaderModule.h
rename to src/dawn/node/binding/GPUShaderModule.h
index 57c49dd..6bb7714 100644
--- a/src/dawn_node/binding/GPUShaderModule.h
+++ b/src/dawn/node/binding/GPUShaderModule.h
@@ -18,8 +18,8 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/binding/AsyncRunner.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/binding/AsyncRunner.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -30,7 +30,7 @@
GPUShaderModule(wgpu::ShaderModule shader, std::shared_ptr<AsyncRunner> async);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::ShaderModule &() const {
+ inline operator const wgpu::ShaderModule&() const {
return shader_;
}
diff --git a/src/dawn_node/binding/GPUSupportedLimits.cpp b/src/dawn/node/binding/GPUSupportedLimits.cpp
similarity index 98%
rename from src/dawn_node/binding/GPUSupportedLimits.cpp
rename to src/dawn/node/binding/GPUSupportedLimits.cpp
index 2c8c881..23c19b2 100644
--- a/src/dawn_node/binding/GPUSupportedLimits.cpp
+++ b/src/dawn/node/binding/GPUSupportedLimits.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUSupportedLimits.h"
+#include "src/dawn/node/binding/GPUSupportedLimits.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUSupportedLimits.h b/src/dawn/node/binding/GPUSupportedLimits.h
similarity index 98%
rename from src/dawn_node/binding/GPUSupportedLimits.h
rename to src/dawn/node/binding/GPUSupportedLimits.h
index 82b0ea6..7a2aa86 100644
--- a/src/dawn_node/binding/GPUSupportedLimits.h
+++ b/src/dawn/node/binding/GPUSupportedLimits.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUTexture.cpp b/src/dawn/node/binding/GPUTexture.cpp
similarity index 90%
rename from src/dawn_node/binding/GPUTexture.cpp
rename to src/dawn/node/binding/GPUTexture.cpp
index 3257f15..0387248 100644
--- a/src/dawn_node/binding/GPUTexture.cpp
+++ b/src/dawn/node/binding/GPUTexture.cpp
@@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUTexture.h"
+#include "src/dawn/node/binding/GPUTexture.h"
-#include "src/dawn_node/binding/Converter.h"
-#include "src/dawn_node/binding/Errors.h"
-#include "src/dawn_node/binding/GPUTextureView.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/binding/Converter.h"
+#include "src/dawn/node/binding/Errors.h"
+#include "src/dawn/node/binding/GPUTextureView.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUTexture.h b/src/dawn/node/binding/GPUTexture.h
similarity index 94%
rename from src/dawn_node/binding/GPUTexture.h
rename to src/dawn/node/binding/GPUTexture.h
index 29e7621..f7dbe91 100644
--- a/src/dawn_node/binding/GPUTexture.h
+++ b/src/dawn/node/binding/GPUTexture.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -28,7 +28,7 @@
GPUTexture(wgpu::Texture texture);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::Texture &() const {
+ inline operator const wgpu::Texture&() const {
return texture_;
}
diff --git a/src/dawn_node/binding/GPUTextureView.cpp b/src/dawn/node/binding/GPUTextureView.cpp
similarity index 92%
rename from src/dawn_node/binding/GPUTextureView.cpp
rename to src/dawn/node/binding/GPUTextureView.cpp
index 11aa55f..1e183db 100644
--- a/src/dawn_node/binding/GPUTextureView.cpp
+++ b/src/dawn/node/binding/GPUTextureView.cpp
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/binding/GPUTextureView.h"
+#include "src/dawn/node/binding/GPUTextureView.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu::binding {
diff --git a/src/dawn_node/binding/GPUTextureView.h b/src/dawn/node/binding/GPUTextureView.h
similarity index 93%
rename from src/dawn_node/binding/GPUTextureView.h
rename to src/dawn/node/binding/GPUTextureView.h
index 89b972e..4394eab 100644
--- a/src/dawn_node/binding/GPUTextureView.h
+++ b/src/dawn/node/binding/GPUTextureView.h
@@ -18,7 +18,7 @@
#include "dawn/webgpu_cpp.h"
#include "dawn_native/DawnNative.h"
#include "napi.h"
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
namespace wgpu::binding {
@@ -29,7 +29,7 @@
GPUTextureView(wgpu::TextureView view);
// Implicit cast operator to Dawn GPU object
- inline operator const wgpu::TextureView &() const {
+ inline operator const wgpu::TextureView&() const {
return view_;
}
diff --git a/src/dawn_node/interop/Browser.idl b/src/dawn/node/interop/Browser.idl
similarity index 100%
rename from src/dawn_node/interop/Browser.idl
rename to src/dawn/node/interop/Browser.idl
diff --git a/src/dawn_node/interop/CMakeLists.txt b/src/dawn/node/interop/CMakeLists.txt
similarity index 96%
rename from src/dawn_node/interop/CMakeLists.txt
rename to src/dawn/node/interop/CMakeLists.txt
index e986d5c..98b5695 100644
--- a/src/dawn_node/interop/CMakeLists.txt
+++ b/src/dawn/node/interop/CMakeLists.txt
@@ -13,7 +13,7 @@
# limitations under the License.
# Paths to generated files
-set(INTEROP_GEN_DIR "${GEN_DIR}/src/dawn_node/interop")
+set(INTEROP_GEN_DIR "${GEN_DIR}/src/dawn/node/interop")
set(INTEROP_WEBGPU_H "${INTEROP_GEN_DIR}/WebGPU.h")
set(INTEROP_WEBGPU_CPP "${INTEROP_GEN_DIR}/WebGPU.cpp")
diff --git a/src/dawn_node/interop/Core.cpp b/src/dawn/node/interop/Core.cpp
similarity index 99%
rename from src/dawn_node/interop/Core.cpp
rename to src/dawn/node/interop/Core.cpp
index 7a671c8..a2232ae 100644
--- a/src/dawn_node/interop/Core.cpp
+++ b/src/dawn/node/interop/Core.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "src/dawn_node/interop/Core.h"
+#include "src/dawn/node/interop/Core.h"
namespace wgpu::interop {
diff --git a/src/dawn_node/interop/Core.h b/src/dawn/node/interop/Core.h
similarity index 99%
rename from src/dawn_node/interop/Core.h
rename to src/dawn/node/interop/Core.h
index c0ec61e..3054569 100644
--- a/src/dawn_node/interop/Core.h
+++ b/src/dawn/node/interop/Core.h
@@ -28,7 +28,7 @@
#include "napi.h"
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
#define ENABLE_INTEROP_LOGGING 0 // Enable for verbose interop logging
@@ -124,10 +124,10 @@
inline operator napi_value() const {
return object;
}
- inline operator const Napi::Value &() const {
+ inline operator const Napi::Value&() const {
return object;
}
- inline operator const Napi::Object &() const {
+ inline operator const Napi::Object&() const {
return object;
}
diff --git a/src/dawn_node/interop/WebGPU.cpp.tmpl b/src/dawn/node/interop/WebGPU.cpp.tmpl
similarity index 98%
rename from src/dawn_node/interop/WebGPU.cpp.tmpl
rename to src/dawn/node/interop/WebGPU.cpp.tmpl
index f70df8e..ca6e24a 100644
--- a/src/dawn_node/interop/WebGPU.cpp.tmpl
+++ b/src/dawn/node/interop/WebGPU.cpp.tmpl
@@ -16,13 +16,13 @@
{{- /*
--------------------------------------------------------------------------------
-Template file for use with src/dawn_node/tools/cmd/idlgen/main.go to generate
+Template file for use with src/dawn/node/tools/cmd/idlgen/main.go to generate
the WebGPU.cpp source file.
See:
* https://github.com/ben-clayton/webidlparser/blob/main/ast/ast.go for the AST
types used by this template
-* src/dawn_node/tools/cmd/idlgen/main.go for additional structures and functions
+* src/dawn/node/tools/cmd/idlgen/main.go for additional structures and functions
used by this template
* https://golang.org/pkg/text/template/ for documentation on the template syntax
--------------------------------------------------------------------------------
@@ -30,11 +30,11 @@
{{- Include "WebGPUCommon.tmpl" -}}
-#include "src/dawn_node/interop/WebGPU.h"
+#include "src/dawn/node/interop/WebGPU.h"
#include <unordered_map>
-#include "src/dawn_node/utils/Debug.h"
+#include "src/dawn/node/utils/Debug.h"
namespace wgpu {
namespace interop {
diff --git a/src/dawn_node/interop/WebGPU.h.tmpl b/src/dawn/node/interop/WebGPU.h.tmpl
similarity index 97%
rename from src/dawn_node/interop/WebGPU.h.tmpl
rename to src/dawn/node/interop/WebGPU.h.tmpl
index 5fbb0ae..1a1a970 100644
--- a/src/dawn_node/interop/WebGPU.h.tmpl
+++ b/src/dawn/node/interop/WebGPU.h.tmpl
@@ -16,13 +16,13 @@
{{- /*
--------------------------------------------------------------------------------
-Template file for use with src/dawn_node/tools/cmd/idlgen/main.go to generate
+Template file for use with src/dawn/node/tools/cmd/idlgen/main.go to generate
the WebGPU.h header file.
See:
* https://github.com/ben-clayton/webidlparser/blob/main/ast/ast.go for the AST
types used by this template
-* src/dawn_node/tools/cmd/idlgen/main.go for additional structures and functions
+* src/dawn/node/tools/cmd/idlgen/main.go for additional structures and functions
used by this template
* https://golang.org/pkg/text/template/ for documentation on the template syntax
--------------------------------------------------------------------------------
@@ -33,7 +33,7 @@
#ifndef DAWN_NODE_GEN_INTEROP_WEBGPU_H_
#define DAWN_NODE_GEN_INTEROP_WEBGPU_H_
-#include "src/dawn_node/interop/Core.h"
+#include "src/dawn/node/interop/Core.h"
namespace wgpu {
namespace interop {
diff --git a/src/dawn_node/interop/WebGPUCommon.tmpl b/src/dawn/node/interop/WebGPUCommon.tmpl
similarity index 97%
rename from src/dawn_node/interop/WebGPUCommon.tmpl
rename to src/dawn/node/interop/WebGPUCommon.tmpl
index c47c097..94b2e40 100644
--- a/src/dawn_node/interop/WebGPUCommon.tmpl
+++ b/src/dawn/node/interop/WebGPUCommon.tmpl
@@ -16,14 +16,14 @@
{{- /*
--------------------------------------------------------------------------------
-Template file for use with src/dawn_node/tools/cmd/idlgen/main.go.
+Template file for use with src/dawn/node/tools/cmd/idlgen/main.go.
This file provides common template definitions and is included by WebGPU.h.tmpl
and WebGPU.cpp.tmpl.
See:
* https://github.com/ben-clayton/webidlparser/blob/main/ast/ast.go for the AST
types used by this template
-* src/dawn_node/tools/cmd/idlgen/main.go for additional structures and functions
+* src/dawn/node/tools/cmd/idlgen/main.go for additional structures and functions
used by this template
* https://golang.org/pkg/text/template/ for documentation on the template syntax
--------------------------------------------------------------------------------
diff --git a/src/dawn_node/tools/go.mod b/src/dawn/node/tools/go.mod
similarity index 76%
rename from src/dawn_node/tools/go.mod
rename to src/dawn/node/tools/go.mod
index e39e222..b5eb8df 100644
--- a/src/dawn_node/tools/go.mod
+++ b/src/dawn/node/tools/go.mod
@@ -1,4 +1,4 @@
-module dawn.googlesource.com/dawn/src/dawn_node/tools
+module dawn.googlesource.com/dawn/src/dawn/node/tools
go 1.16
diff --git a/src/dawn_node/tools/go.sum b/src/dawn/node/tools/go.sum
similarity index 100%
rename from src/dawn_node/tools/go.sum
rename to src/dawn/node/tools/go.sum
diff --git a/src/dawn_node/tools/run-cts b/src/dawn/node/tools/run-cts
similarity index 100%
rename from src/dawn_node/tools/run-cts
rename to src/dawn/node/tools/run-cts
diff --git a/src/dawn_node/tools/src/cmd/idlgen/main.go b/src/dawn/node/tools/src/cmd/idlgen/main.go
similarity index 100%
rename from src/dawn_node/tools/src/cmd/idlgen/main.go
rename to src/dawn/node/tools/src/cmd/idlgen/main.go
diff --git a/src/dawn_node/tools/src/cmd/run-cts/main.go b/src/dawn/node/tools/src/cmd/run-cts/main.go
similarity index 100%
rename from src/dawn_node/tools/src/cmd/run-cts/main.go
rename to src/dawn/node/tools/src/cmd/run-cts/main.go
diff --git a/src/dawn_node/utils/Debug.h b/src/dawn/node/utils/Debug.h
similarity index 100%
rename from src/dawn_node/utils/Debug.h
rename to src/dawn/node/utils/Debug.h