diff --git a/libs/filamat/src/GLSLPostProcessor.cpp b/libs/filamat/src/GLSLPostProcessor.cpp index 2f6bbea80d6..54c8f0645e7 100644 --- a/libs/filamat/src/GLSLPostProcessor.cpp +++ b/libs/filamat/src/GLSLPostProcessor.cpp @@ -519,7 +519,7 @@ void GLSLPostProcessor::spirvToMsl(const SpirvBlob* spirv, std::string* outMsl, } bool GLSLPostProcessor::spirvToWgsl(const SpirvBlob *spirv, std::string *outWsl) { -#ifdef FILAMENT_SUPPORTS_WEBGPU +#if FILAMENT_SUPPORTS_WEBGPU //Currently no options we want to use const tint::spirv::reader::Options readerOpts{}; tint::wgsl::writer::Options writerOpts{}; @@ -547,7 +547,7 @@ bool GLSLPostProcessor::spirvToWgsl(const SpirvBlob *spirv, std::string *outWsl) *outWsl = wgslOut->wgsl; return true; #else - slog.i << "Trying to emit WGSL without including WebGPU dependencies, please set CMake arg FILAMENT_SUPPORTS_WEBGPU" << io::endl; + slog.i << "Trying to emit WGSL without including WebGPU dependencies, please set CMake arg FILAMENT_SUPPORTS_WEBGPU and FILAMENT_SUPPORTS_WEBGPU" << io::endl; return false; #endif diff --git a/third_party/dawn/tnt/CMakeLists.txt b/third_party/dawn/tnt/CMakeLists.txt index 71c3bc1e499..5475c790b2a 100644 --- a/third_party/dawn/tnt/CMakeLists.txt +++ b/third_party/dawn/tnt/CMakeLists.txt @@ -12,5 +12,7 @@ set(DAWN_ABSEIL_DIR ${EXTERNAL}/abseil) set(DAWN_SPIRV_TOOLS_DIR ${EXTERNAL}/spirv-tools/) set(DAWN_SPIRV_HEADERS_DIR ${EXTERNAL}/spirv-headers) set(DAWN_GLSLANG_DIR ${EXTERNAL}/glslang/) - +if(IS_HOST_PLATFORM) + set(TINT_BUILD_SPV_READER ON) +endif () add_subdirectory(../ ${PROJECT_BINARY_DIR}/third_party/dawn) \ No newline at end of file