mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Implement data packing intrinsics
* Fix how the HLSL writer determines how to use a RWByteAddressBuffer * Fix how the HLSL writer decides the register space for a storage variable * Fix inference of hlsl format in the tint executable * Add support for data packing intrinsics * type determination * validation * writers * spirv reader Bug: tint:340, tint:473, tint:474 Change-Id: I45dc8fd7c6f9abc7d30f617c7e3d713d7965b76e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/40342 Commit-Queue: Alan Baker <alanbaker@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
fbd47c752e
commit
c63e1c0791
@@ -164,7 +164,13 @@ Format infer_format(const std::string& filename) {
|
||||
if (ends_with(filename, ".metal")) {
|
||||
return Format::kMsl;
|
||||
}
|
||||
#endif // TINT_BUILD_WGSL_WRITER
|
||||
#endif // TINT_BUILD_MSL_WRITER
|
||||
|
||||
#if TINT_BUILD_HLSL_WRITER
|
||||
if (ends_with(filename, ".hlsl")) {
|
||||
return Format::kHlsl;
|
||||
}
|
||||
#endif // TINT_BUILD_HLSL_WRITER
|
||||
|
||||
return Format::kNone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user