This commit is contained in:
parent
ba6a4a0342
commit
baff796eb8
1 changed files with 27 additions and 27 deletions
|
|
@ -58,32 +58,32 @@ Suite packing = "shader_pack"_suite = [] {
|
||||||
std::move(dummy_blob)
|
std::move(dummy_blob)
|
||||||
);
|
);
|
||||||
|
|
||||||
// auto stream = std::ifstream {
|
auto stream = std::ifstream {
|
||||||
// out_path,
|
out_path,
|
||||||
// std::ios::binary,
|
std::ios::binary,
|
||||||
// };
|
};
|
||||||
// expect_true(stream.is_open());
|
expect_true(stream.is_open());
|
||||||
//
|
|
||||||
// stream.seekg(0, std::ios::end);
|
stream.seekg(0, std::ios::end);
|
||||||
// const auto file_size = static_cast<size_t>(stream.tellg());
|
const auto file_size = static_cast<size_t>(stream.tellg());
|
||||||
// expect_eq(file_size, expected_size);
|
expect_eq(file_size, expected_size);
|
||||||
// stream.close();
|
stream.close();
|
||||||
//
|
|
||||||
// auto shader_asset = ShaderAsset { out_path };
|
auto shader_asset = ShaderAsset { out_path };
|
||||||
//
|
|
||||||
// const auto &asset_metadata = shader_asset.get_asset_metadata();
|
const auto &asset_metadata = shader_asset.get_asset_metadata();
|
||||||
// expect_eq(asset_metadata.type, ShaderAsset::asset_type_identifier);
|
expect_eq(asset_metadata.type, ShaderAsset::asset_type_identifier);
|
||||||
// expect_eq(asset_metadata.version, lt::assets::current_version);
|
expect_eq(asset_metadata.version, lt::assets::current_version);
|
||||||
//
|
|
||||||
// const auto &metadata = shader_asset.get_metadata();
|
const auto &metadata = shader_asset.get_metadata();
|
||||||
// expect_eq(metadata.type, ShaderAsset::Type::vertex);
|
expect_eq(metadata.type, ShaderAsset::Type::vertex);
|
||||||
//
|
|
||||||
// auto blob = shader_asset.unpack(ShaderAsset::BlobTag::code);
|
auto blob = shader_asset.unpack(ShaderAsset::BlobTag::code);
|
||||||
// expect_eq(blob.size(), 255);
|
expect_eq(blob.size(), 255);
|
||||||
//
|
|
||||||
// for (auto idx : std::views::iota(0, 255))
|
for (auto idx : std::views::iota(0, 255))
|
||||||
// {
|
{
|
||||||
// expect_eq(blob[idx], static_cast<std::byte>(idx));
|
expect_eq(blob[idx], static_cast<std::byte>(idx));
|
||||||
// }
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue