mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
tests: use valid image descriptors in shader CFG cases
This commit is contained in:
@@ -623,6 +623,7 @@ ImageTestUserData(Prospero::ImageType type = Prospero::ImageType::kColor2D) {
|
|||||||
std::array<uint32_t, 64> data {};
|
std::array<uint32_t, 64> data {};
|
||||||
for (uint32_t start = 0; start + 3u < data.size(); start += 4u) {
|
for (uint32_t start = 0; start + 3u < data.size(); start += 4u) {
|
||||||
data[start] = 0x1000u + start * 0x100u;
|
data[start] = 0x1000u + start * 0x100u;
|
||||||
|
data[start + 1u] = Prospero::GpuEnumValue(Prospero::BufferFormat::k8UNorm) << 20u;
|
||||||
data[start + 2u] = UINT32_MAX;
|
data[start + 2u] = UINT32_MAX;
|
||||||
data[start + 3u] = Prospero::GpuEnumValue(type) << 28u;
|
data[start + 3u] = Prospero::GpuEnumValue(type) << 28u;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user