Skip to content

Commit

Permalink
Render State Packager: enabled packaging WebGPU data
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Jul 13, 2024
1 parent a5dd6f8 commit 799681b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RenderStatePackager/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ ParseStatus ParseCommandLine(int argc, char* argv[], ParsingEnvironmentCreateInf
args::Flag ArgumentDeviceFlagOpenGLES{GroupDeviceFlags, "opengles", "OpenGLES", {"opengles"}};
args::Flag ArgumentDeviceFlagMetalMacOS{GroupDeviceFlags, "metal_macos", "Metal_MacOS", {"metal_macos"}};
args::Flag ArgumentDeviceFlagMetalIOS{GroupDeviceFlags, "metal_ios", "Metal_IOS", {"metal_ios"}};
args::Flag ArgumentDeviceFlagWebGPU{GroupDeviceFlags, "webgpu", "WebGPU", {"webgpu"}};

args::Group ArchiveDeviceFlags{Parser, "Archive Flags:", args::Group::Validators::DontCare};
args::Flag ArgumentArchiveFlagStrip{ArchiveDeviceFlags, "strip_reflection", "Strip shader reflection", {"strip_reflection"}};
Expand Down Expand Up @@ -98,6 +99,8 @@ ParseStatus ParseCommandLine(int argc, char* argv[], ParsingEnvironmentCreateInf
DeviceFlags |= ARCHIVE_DEVICE_DATA_FLAG_METAL_MACOS;
if (ArgumentDeviceFlagMetalIOS)
DeviceFlags |= ARCHIVE_DEVICE_DATA_FLAG_METAL_IOS;
if (ArgumentDeviceFlagWebGPU)
DeviceFlags |= ARCHIVE_DEVICE_DATA_FLAG_WEBGPU;
return DeviceFlags;
};

Expand Down
3 changes: 3 additions & 0 deletions Tests/DiligentToolsGPUTest/src/RenderStatePackagerGPUTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ static constexpr ARCHIVE_DEVICE_DATA_FLAGS GetDeviceFlags()
#if METAL_SUPPORTED
DeviceFlags = DeviceFlags | ARCHIVE_DEVICE_DATA_FLAG_METAL_MACOS;
DeviceFlags = DeviceFlags | ARCHIVE_DEVICE_DATA_FLAG_METAL_IOS;
#endif
#if WEBGPU_SUPPORTED
//DeviceFlags = DeviceFlags | ARCHIVE_DEVICE_DATA_FLAG_WEBGPU;
#endif
return DeviceFlags;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ static constexpr ARCHIVE_DEVICE_DATA_FLAGS GetDeviceFlags()
#if METAL_SUPPORTED
DeviceFlags = DeviceFlags | ARCHIVE_DEVICE_DATA_FLAG_METAL_MACOS;
DeviceFlags = DeviceFlags | ARCHIVE_DEVICE_DATA_FLAG_METAL_IOS;
#endif
#if WEBGPU_SUPPORTED
//DeviceFlags = DeviceFlags | ARCHIVE_DEVICE_DATA_FLAG_WEBGPU;
#endif
return DeviceFlags;
}
Expand Down

0 comments on commit 799681b

Please sign in to comment.