mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
vulkan: Remove redundant texture::create/init overloads
This commit is contained in:
parent
63ad2cce72
commit
3b3fffa962
@ -368,13 +368,10 @@ namespace vk
|
||||
|
||||
void create(vk::render_device &device, VkFormat format, VkImageType image_type, VkImageViewType view_type, VkImageCreateFlags image_flags, VkImageUsageFlags usage, VkImageTiling tiling, u32 width, u32 height, u32 mipmaps, bool gpu_only, VkComponentMapping swizzle);
|
||||
void create(vk::render_device &device, VkFormat format, VkImageUsageFlags usage, VkImageTiling tiling, u32 width, u32 height, u32 mipmaps, bool gpu_only, VkComponentMapping swizzle);
|
||||
void create(vk::render_device &device, VkFormat format, VkImageUsageFlags usage, u32 width, u32 height, u32 mipmaps, bool gpu_only, VkComponentMapping swizzle);
|
||||
void create(vk::render_device &device, VkFormat format, VkImageUsageFlags usage, u32 width, u32 height, u32 mipmaps, bool gpu_only);
|
||||
void create(vk::render_device &device, VkFormat format, VkImageUsageFlags usage, u32 width, u32 height);
|
||||
void create(vk::render_device &device, VkFormat format, VkImageUsageFlags usage, u32 width, u32 height, u32 mipmaps = 1, bool gpu_only = false, VkComponentMapping swizzle = default_component_map());
|
||||
void destroy();
|
||||
|
||||
void init(rsx::texture &tex, vk::command_buffer &cmd, bool ignore_checks);
|
||||
void init(rsx::texture &tex, vk::command_buffer &cmd);
|
||||
void init(rsx::texture &tex, vk::command_buffer &cmd, bool ignore_checks = false);
|
||||
void flush(vk::command_buffer & cmd);
|
||||
|
||||
//Fill with debug color 0xFF
|
||||
|
@ -268,16 +268,6 @@ namespace vk
|
||||
create(device, format, usage, tiling, width, height, mipmaps, gpu_only, swizzle);
|
||||
}
|
||||
|
||||
void texture::create(vk::render_device &device, VkFormat format, VkImageUsageFlags usage, u32 width, u32 height, u32 mipmaps, bool gpu_only)
|
||||
{
|
||||
create(device, format, usage, width, height, mipmaps, gpu_only, default_component_map());
|
||||
}
|
||||
|
||||
void texture::create(vk::render_device &device, VkFormat format, VkImageUsageFlags usage, u32 width, u32 height)
|
||||
{
|
||||
create(device, format, usage, width, height, 1, false);
|
||||
}
|
||||
|
||||
VkSamplerAddressMode texture::vk_wrap_mode(u32 gcm_wrap)
|
||||
{
|
||||
switch (gcm_wrap)
|
||||
@ -489,11 +479,6 @@ namespace vk
|
||||
}
|
||||
}
|
||||
|
||||
void texture::init(rsx::texture &tex, vk::command_buffer &cmd)
|
||||
{
|
||||
init(tex, cmd, false);
|
||||
}
|
||||
|
||||
void texture::flush(vk::command_buffer &cmd)
|
||||
{
|
||||
if (!ready)
|
||||
|
Loading…
Reference in New Issue
Block a user