Flutter Engine
The Flutter Engine
|
#include <GrVkRenderTarget.h>
Public Types | |
using | SelfDependencyFlags = GrVkRenderPass::SelfDependencyFlags |
using | LoadFromResolve = GrVkRenderPass::LoadFromResolve |
Public Types inherited from GrSurface | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
Static Public Member Functions | |
static sk_sp< GrVkRenderTarget > | MakeWrappedRenderTarget (GrVkGpu *, SkISize, int sampleCnt, const GrVkImageInfo &, sk_sp< skgpu::MutableTextureState >) |
static sk_sp< GrVkRenderTarget > | MakeSecondaryCBRenderTarget (GrVkGpu *, SkISize, const GrVkDrawableInfo &vkInfo) |
static void | ReconstructAttachmentsDescriptor (const GrVkCaps &vkCaps, const GrProgramInfo &programInfo, GrVkRenderPass::AttachmentsDescriptor *desc, GrVkRenderPass::AttachmentFlags *flags) |
Static Public Member Functions inherited from GrSurface | |
static size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
Static Public Member Functions inherited from GrGpuResource | |
static uint32_t | CreateUniqueID () |
Protected Types | |
enum class | CreateType { kDirectlyWrapped , kFromTextureRT } |
Protected Member Functions | |
GrVkRenderTarget (GrVkGpu *gpu, SkISize dimensions, sk_sp< GrVkImage > colorAttachment, sk_sp< GrVkImage > resolveImage, CreateType createType, std::string_view label) | |
void | onAbandon () override |
void | onRelease () override |
size_t | onGpuMemorySize () const override |
void | onSetLabel () override |
Protected Member Functions inherited from GrRenderTarget | |
GrRenderTarget (GrGpu *, const SkISize &, int sampleCount, GrProtected, std::string_view label, sk_sp< GrAttachment > stenicl=nullptr) | |
~GrRenderTarget () override | |
void | onAbandon () override |
void | onRelease () override |
Protected Member Functions inherited from GrSurface | |
void | setGLRTFBOIDIs0 () |
bool | glRTFBOIDis0 () const |
void | setRequiresManualMSAAResolve () |
bool | requiresManualMSAAResolve () const |
void | setReadOnly () |
void | setVkRTSupportsInputAttachment () |
GrSurface (GrGpu *gpu, const SkISize &dimensions, skgpu::Protected isProtected, std::string_view label) | |
~GrSurface () override | |
void | onRelease () override |
void | onAbandon () override |
Protected Member Functions inherited from GrGpuResource | |
void | registerWithCache (skgpu::Budgeted) |
void | registerWithCacheWrapped (GrWrapCacheable) |
GrGpuResource (GrGpu *, std::string_view label) | |
virtual | ~GrGpuResource () |
GrGpu * | getGpu () const |
virtual void | onRelease () |
virtual void | onAbandon () |
virtual void | setMemoryBacking (SkTraceMemoryDump *, const SkString &) const |
SkString | getResourceName () const |
void | dumpMemoryStatisticsPriv (SkTraceMemoryDump *traceMemoryDump, const SkString &resourceName, const char *type, size_t size) const |
Protected Member Functions inherited from GrIORef< GrGpuResource > | |
GrIORef () | |
bool | internalHasRef () const |
bool | internalHasNoCommandBufferUsages () const |
void | addInitialRef () const |
Definition at line 26 of file GrVkRenderTarget.h.
Definition at line 43 of file GrVkRenderTarget.h.
Definition at line 42 of file GrVkRenderTarget.h.
|
strongprotected |
Enumerator | |
---|---|
kDirectlyWrapped | |
kFromTextureRT |
Definition at line 118 of file GrVkRenderTarget.h.
|
override |
Definition at line 470 of file GrVkRenderTarget.cpp.
|
protected |
Definition at line 54 of file GrVkRenderTarget.cpp.
|
overridevirtual |
Implements GrSurface.
Reimplemented in GrVkTextureRenderTarget.
Definition at line 226 of file GrVkRenderTarget.cpp.
|
overridevirtual |
Implements GrRenderTarget.
Definition at line 274 of file GrVkRenderTarget.cpp.
|
inline |
Definition at line 56 of file GrVkRenderTarget.h.
|
inline |
Definition at line 60 of file GrVkRenderTarget.h.
GrVkResourceProvider::CompatibleRPHandle GrVkRenderTarget::compatibleRenderPassHandle | ( | bool | withResolve, |
bool | withStencil, | ||
SelfDependencyFlags | selfDepFlags, | ||
LoadFromResolve | loadFromResolve | ||
) |
Definition at line 303 of file GrVkRenderTarget.cpp.
|
inline |
Definition at line 82 of file GrVkRenderTarget.h.
sk_sp< GrVkFramebuffer > GrVkRenderTarget::externalFramebuffer | ( | ) | const |
Definition at line 299 of file GrVkRenderTarget.cpp.
bool GrVkRenderTarget::getAttachmentsDescriptor | ( | GrVkRenderPass::AttachmentsDescriptor * | desc, |
GrVkRenderPass::AttachmentFlags * | flags, | ||
bool | withResolve, | ||
bool | withStencil | ||
) |
Definition at line 399 of file GrVkRenderTarget.cpp.
|
overridevirtual |
Implements GrRenderTarget.
Definition at line 512 of file GrVkRenderTarget.cpp.
const GrVkFramebuffer * GrVkRenderTarget::getFramebuffer | ( | bool | withResolve, |
bool | withStencil, | ||
SelfDependencyFlags | selfDepFlags, | ||
LoadFromResolve | loadFromResolve | ||
) |
Definition at line 353 of file GrVkRenderTarget.cpp.
|
inline |
Definition at line 49 of file GrVkRenderTarget.h.
const GrVkRenderPass * GrVkRenderTarget::getSimpleRenderPass | ( | bool | withResolve, |
bool | withStencil, | ||
SelfDependencyFlags | selfDepFlags, | ||
LoadFromResolve | loadFromResolve | ||
) |
Definition at line 319 of file GrVkRenderTarget.cpp.
|
static |
Definition at line 174 of file GrVkRenderTarget.cpp.
|
static |
Definition at line 130 of file GrVkRenderTarget.cpp.
GrVkImage * GrVkRenderTarget::nonMSAAAttachment | ( | ) | const |
Definition at line 233 of file GrVkRenderTarget.cpp.
|
overrideprotectedvirtual |
Overridden to abandon any internal handles, ptrs, etc to backend API resources. This may be called when the underlying 3D context is no longer valid and so no backend API calls should be made.
Reimplemented from GrRenderTarget.
Reimplemented in GrVkTextureRenderTarget.
Definition at line 507 of file GrVkRenderTarget.cpp.
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrRenderTarget.
Reimplemented in GrVkTextureRenderTarget.
Definition at line 502 of file GrVkRenderTarget.cpp.
|
inlineoverrideprotectedvirtual |
|
static |
Definition at line 439 of file GrVkRenderTarget.cpp.
|
inline |
Definition at line 65 of file GrVkRenderTarget.h.
|
inline |
Definition at line 69 of file GrVkRenderTarget.h.
|
inline |
Definition at line 97 of file GrVkRenderTarget.h.