mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Implement R16G16B16A16Snorm
/R16G16B16A16Sint
RT Formats
Utilized in "The Touryst"
This commit is contained in:
@ -98,6 +98,10 @@ namespace skyline::gpu::interconnect {
|
||||
return format::R32B32G32A32Float;
|
||||
case maxwell3d::RenderTarget::ColorFormat::R16G16B16A16Unorm:
|
||||
return format::R16G16B16A16Unorm;
|
||||
case maxwell3d::RenderTarget::ColorFormat::R16G16B16A16Snorm:
|
||||
return format::R16G16B16A16Snorm;
|
||||
case maxwell3d::RenderTarget::ColorFormat::R16G16B16A16Sint:
|
||||
return format::R16G16B16A16Sint;
|
||||
case maxwell3d::RenderTarget::ColorFormat::R16G16B16A16Uint:
|
||||
return format::R16G16B16A16Uint;
|
||||
case maxwell3d::RenderTarget::ColorFormat::R16G16B16A16Float:
|
||||
@ -206,6 +210,8 @@ namespace skyline::gpu::interconnect {
|
||||
renderTarget.guest.mappings.assign(mappings.begin(), mappings.end());
|
||||
}
|
||||
|
||||
renderTarget.guest.type = static_cast<texture::TextureType>(renderTarget.guest.dimensions.GetType());
|
||||
|
||||
renderTarget.view = gpu.texture.FindOrCreate(renderTarget.guest);
|
||||
return &renderTarget.view.value();
|
||||
}
|
||||
|
@ -33,6 +33,8 @@ namespace skyline::gpu::format {
|
||||
.green = swc::Blue,
|
||||
}};
|
||||
constexpr Format R16G16B16A16Unorm{sizeof(u16) * 4, vkf::eR16G16B16A16Unorm};
|
||||
constexpr Format R16G16B16A16Snorm{sizeof(u16) * 4, vkf::eR16G16B16A16Snorm};
|
||||
constexpr Format R16G16B16A16Sint{sizeof(u16) * 4, vkf::eR16G16B16A16Sint};
|
||||
constexpr Format R16G16B16A16Uint{sizeof(u16) * 4, vkf::eR16G16B16A16Uint};
|
||||
constexpr Format R16G16B16A16Float{sizeof(u16) * 4, vkf::eR16G16B16A16Sfloat};
|
||||
|
||||
@ -77,6 +79,10 @@ namespace skyline::gpu::format {
|
||||
return R8Uint;
|
||||
case vk::Format::eR16G16B16A16Unorm:
|
||||
return R16G16B16A16Unorm;
|
||||
case vk::Format::eR16G16B16A16Snorm:
|
||||
return R16G16B16A16Unorm;
|
||||
case vk::Format::eR16G16B16A16Sint:
|
||||
return R16G16B16A16Unorm;
|
||||
case vk::Format::eR16G16B16A16Uint:
|
||||
return R16G16B16A16Uint;
|
||||
case vk::Format::eR16G16B16A16Sfloat:
|
||||
|
Reference in New Issue
Block a user