Flutter Engine
The Flutter Engine
Macros | Functions
GrVkRenderTarget.cpp File Reference
#include "src/gpu/ganesh/vk/GrVkRenderTarget.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/MutableTextureState.h"
#include "include/gpu/ganesh/vk/GrVkBackendSurface.h"
#include "include/gpu/vk/GrVkTypes.h"
#include "include/gpu/vk/VulkanMutableTextureState.h"
#include "include/private/base/SkAssert.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrResourceProvider.h"
#include "src/gpu/ganesh/vk/GrVkBackendSurfacePriv.h"
#include "src/gpu/ganesh/vk/GrVkCommandBuffer.h"
#include "src/gpu/ganesh/vk/GrVkDescriptorSet.h"
#include "src/gpu/ganesh/vk/GrVkFramebuffer.h"
#include "src/gpu/ganesh/vk/GrVkGpu.h"
#include "src/gpu/ganesh/vk/GrVkImageView.h"
#include "src/gpu/ganesh/vk/GrVkResourceProvider.h"
#include "src/gpu/ganesh/vk/GrVkUtil.h"

Go to the source code of this file.

Macros

#define VK_CALL(GPU, X)   GR_VK_CALL(GPU->vkInterface(), X)
 

Functions

static int renderpass_features_to_index (bool hasResolve, bool hasStencil, GrVkRenderPass::SelfDependencyFlags selfDepFlags, GrVkRenderPass::LoadFromResolve loadFromReslove)
 

Macro Definition Documentation

◆ VK_CALL

#define VK_CALL (   GPU,
  X 
)    GR_VK_CALL(GPU->vkInterface(), X)

Definition at line 28 of file GrVkRenderTarget.cpp.

Function Documentation

◆ renderpass_features_to_index()

static int renderpass_features_to_index ( bool  hasResolve,
bool  hasStencil,
GrVkRenderPass::SelfDependencyFlags  selfDepFlags,
GrVkRenderPass::LoadFromResolve  loadFromReslove 
)
static

Definition at line 30 of file GrVkRenderTarget.cpp.

32 {
33 int index = 0;
34 if (hasResolve) {
35 index += 1;
36 }
37 if (hasStencil) {
38 index += 2;
39 }
41 index += 4;
42 }
44 index += 8;
45 }
46 if (loadFromReslove == GrVkRenderPass::LoadFromResolve::kLoad) {
47 index += 16;
48 }
49 return index;
50}