Codestyle fixes and optimizations

This commit is contained in:
Wojtek Figat
2024-01-29 13:46:50 +01:00
parent 1b33a2aa0d
commit bb00d29098
25 changed files with 163 additions and 486 deletions

View File

@@ -30,13 +30,11 @@ class ResourceOwnerVulkan
friend GPUContextVulkan;
public:
virtual ~ResourceOwnerVulkan()
{
}
public:
/// <summary>
/// The resource state tracking helper. Used for resource barriers.
/// </summary>
@@ -48,7 +46,6 @@ public:
int32 ArraySlices;
public:
/// <summary>
/// Gets resource owner object as a GPUResource type or returns null if cannot perform cast.
/// </summary>
@@ -56,7 +53,6 @@ public:
virtual GPUResource* AsGPUResource() const = 0;
protected:
void initResource(VkImageLayout initialState, int32 mipLevels = 1, int32 arraySize = 1, bool usePerSubresourceTracking = false)
{
State.Initialize(mipLevels * arraySize, initialState, usePerSubresourceTracking);