mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Validate SPIR-V code when creating ShaderModules
This integrates spirv-val in dawn_native so that regular and WebGPU-specific validation of shaders is done. Also adds tests to check OpUndef is correctly rejected so we know WebGPU-specific validation is working. Change-Id: If49d276c98bca8cd3c6c1a420903fe34923a2942
This commit is contained in:
committed by
Corentin Wallez
parent
ae62847f1c
commit
21d8438ad6
@@ -47,6 +47,7 @@ class ValidationTest : public testing::Test {
|
||||
|
||||
void StartExpectDeviceError();
|
||||
bool EndExpectDeviceError();
|
||||
std::string GetLastDeviceErrorMessage() const;
|
||||
|
||||
dawn::RenderPassDescriptor CreateSimpleRenderPass();
|
||||
|
||||
@@ -66,6 +67,7 @@ class ValidationTest : public testing::Test {
|
||||
|
||||
private:
|
||||
static void OnDeviceError(const char* message, dawnCallbackUserdata userdata);
|
||||
std::string mDeviceErrorMessage;
|
||||
bool mExpectError = false;
|
||||
bool mError = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user