renderer_vulkan: Add experimental Vulkan renderer

This commit is contained in:
emufan4568
2022-09-16 17:19:09 +03:00
committed by GPUCode
parent 945faf8e92
commit 9675811bbe
70 changed files with 10347 additions and 161 deletions

View File

@@ -14,7 +14,6 @@ struct HostTextureTag {
PixelFormat format{};
u32 width = 0;
u32 height = 0;
u32 levels = 1;
u32 layers = 1;
auto operator<=>(const HostTextureTag&) const noexcept = default;
@@ -45,7 +44,7 @@ class SurfaceParams;
[[nodiscard]] ClearValue MakeClearValue(SurfaceType type, PixelFormat format, const u8* fill_data);
void SwizzleTexture(const SurfaceParams& params, u32 start_offset,
void SwizzleTexture(const SurfaceParams& params, u32 start_offset, u32 end_offset,
std::span<std::byte> source_linear, std::span<std::byte> dest_tiled);
/**
@@ -56,7 +55,7 @@ void SwizzleTexture(const SurfaceParams& params, u32 start_offset,
* @param source_tiled The source morton swizzled data.
* @param dest_linear The output buffer where the generated linear data will be written to.
*/
void UnswizzleTexture(const SurfaceParams& params, u32 start_offset,
void UnswizzleTexture(const SurfaceParams& params, u32 start_offset, u32 end_offset,
std::span<std::byte> source_tiled, std::span<std::byte> dest_linear);
} // namespace VideoCore