Skip to content

Instantly share code, notes, and snippets.

View dcerisano's full-sized avatar
🎯
Focusing

Dominic Cerisano dcerisano

🎯
Focusing
View GitHub Profile
dcerisano@kronos:~/git/webgpu$ npm run all --dawnversion=0.0.3
> webgpu@0.0.8 all /home/dcerisano/git/webgpu
> npm run generate & npm run build
> webgpu@0.0.8 build /home/dcerisano/git/webgpu
> node ./build.js
dcerisano@kronos:~/git/webgpu$ npm run all --dawnversion=0.0.3
> webgpu@0.0.8 all /home/dcerisano/git/webgpu
> npm run generate & npm run build
> webgpu@0.0.8 build /home/dcerisano/git/webgpu
> node ./build.js
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": ["platform == 'win'", "C:/VulkanSDK/1.1.126.0"],
"vkSDK": ["platform == 'linux'", "/usr/bin"],
"vkSDK": ["platform == 'mac'", ""],
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "C:/VulkanSDK/1.1.126.0"
},
"conditions": [
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "/home/dcerisano/1.1.126.0/x86_64"
},
"conditions": [
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "/home/dcerisano/1.1.126.0/x86_64"
},
"conditions": [
gn gen out/Shared --target_cpu="x64" --args="is_component_build=true is_debug=false is_clang=true"
Done. Made 129 targets from 68 files in 139ms
ninja -C out/Shared
ninja: Entering directory `out/Shared'
[89/642] CXX obj/libdawn_native_sources/BackendGL.o
FAILED: obj/libdawn_native_sources/BackendGL.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/libdawn_native_sources/BackendGL.o.d -DDAWN_ENABLE_VULKAN_VALIDATION_LAYERS -DDAWN_VK_DATA_DIR=\"vulkandata\" -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"365097-f7e52fbd-8\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=361348 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DDAWN_ENABLE_BACKEND_NULL -DDAWN_ENABLE_BACKEND_O
npm run all --dawnversion=0.0.1
> webgpu@0.0.9 all /home/dcerisano/git/webgpu
> npm run generate ; npm run build
> webgpu@0.0.9 generate /home/dcerisano/git/webgpu
> node --experimental-modules ./generator/index.mjs
(node:15822) ExperimentalWarning: The ESM module loader is experimental.
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "/home/dcerisano/1.1.126.0/x86_64"
},
"conditions": [
/// <reference types="@webgpu/types" />
import { assert } from '../util/index.js';
let impl = require(`/home/dcerisano/git/webgpu/generated/0.0.1/linux/build/Release/addon-linux.node`);
export function getGPU(): GPU {
if (impl) {