[vulkan] Use the short name for the image types

Yay for coming up with a solution for enums short names that start with
a number, makes things more readable.
This commit is contained in:
Bill Currie 2021-12-02 13:44:58 +09:00
parent 614c744693
commit b1ba87e5aa
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
{ {
images = { images = {
depth = { depth = {
imageType = VK_IMAGE_TYPE_2D; //FIXME short form is 2d... imageType = `2d;
format = x8_d24_unorm_pack32; format = x8_d24_unorm_pack32;
samples = 1; samples = 1;
extent = { extent = {
@ -16,7 +16,7 @@
initialLayout = undefined; initialLayout = undefined;
}; };
color = { color = {
imageType = VK_IMAGE_TYPE_2D; imageType = `2d;
format = r8g8b8a8_unorm; format = r8g8b8a8_unorm;
samples = 1; samples = 1;
extent = { extent = {
@ -31,7 +31,7 @@
initialLayout = undefined; initialLayout = undefined;
}; };
emission = { emission = {
imageType = VK_IMAGE_TYPE_2D; imageType = `2d;
format = r16g16b16a16_sfloat; format = r16g16b16a16_sfloat;
samples = 1; samples = 1;
extent = { extent = {
@ -46,7 +46,7 @@
initialLayout = undefined; initialLayout = undefined;
}; };
normal = { normal = {
imageType = VK_IMAGE_TYPE_2D; imageType = `2d;
format = r16g16b16a16_sfloat; format = r16g16b16a16_sfloat;
samples = 1; samples = 1;
extent = { extent = {
@ -61,7 +61,7 @@
initialLayout = undefined; initialLayout = undefined;
}; };
position = { position = {
imageType = VK_IMAGE_TYPE_2D; imageType = `2d;
format = r32g32b32a32_sfloat; format = r32g32b32a32_sfloat;
samples = 1; samples = 1;
extent = { extent = {
@ -76,7 +76,7 @@
initialLayout = undefined; initialLayout = undefined;
}; };
opaque = { opaque = {
imageType = VK_IMAGE_TYPE_2D; imageType = `2d;
format = r8g8b8a8_unorm; format = r8g8b8a8_unorm;
samples = 1; samples = 1;
extent = { extent = {
@ -91,7 +91,7 @@
initialLayout = undefined; initialLayout = undefined;
}; };
translucent = { translucent = {
imageType = VK_IMAGE_TYPE_2D; imageType = `2d;
format = r8g8b8a8_unorm; format = r8g8b8a8_unorm;
samples = 1; samples = 1;
extent = { extent = {

View File

@ -2,7 +2,7 @@
images = { images = {
shadow = { shadow = {
flags = cube_compatible; flags = cube_compatible;
imageType = VK_IMAGE_TYPE_2D; //FIXME short form is 2d... imageType = `2d;
format = x8_d24_unorm_pack32; format = x8_d24_unorm_pack32;
samples = 1; samples = 1;
extent = { extent = {