Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData Struct Reference

#include <VulkanRenderPass.h>

Public Member Functions

 VulkanRenderPassMetaData (const RenderPassDesc &renderPassDesc)
 

Public Attributes

bool fLoadMSAAFromResolve
 
bool fHasColorAttachment
 
bool fHasColorResolveAttachment
 
bool fHasDepthStencilAttachment
 
int fNumColorAttachments
 
int fNumResolveAttachments
 
int fNumDepthStencilAttachments
 
int fSubpassCount
 
int fSubpassDependencyCount
 
int fUint32DataCnt
 
skia_private::TArray< const AttachmentDesc * > fAttachments
 

Detailed Description

Definition at line 64 of file VulkanRenderPass.h.

Constructor & Destructor Documentation

◆ VulkanRenderPassMetaData()

skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::VulkanRenderPassMetaData ( const RenderPassDesc renderPassDesc)

Definition at line 158 of file VulkanRenderPass.cpp.

159 {
160 fLoadMSAAFromResolve = renderPassDesc.fColorResolveAttachment.fTextureInfo.isValid() &&
161 renderPassDesc.fColorResolveAttachment.fLoadOp == LoadOp::kLoad;
162 fHasColorAttachment = renderPassDesc.fColorAttachment.fTextureInfo.isValid();
164 renderPassDesc.fColorResolveAttachment.fTextureInfo.isValid();
166 renderPassDesc.fDepthStencilAttachment.fTextureInfo.isValid();
167
168 // TODO: Query for more attachments once the RenderPassDesc struct contains that information.
169 // For now, we only ever expect to see 0 or 1 of each attachment type (color, resolve, and
170 // depth/stencil), so the count of each of those can simply be determined with a bool.
174
175 // Accumulate attachments into a container to mimic future structure in RenderPassDesc
180 fAttachments.push_back(&renderPassDesc.fColorAttachment);
181 }
183 fAttachments.push_back(&renderPassDesc.fColorResolveAttachment);
184 }
186 fAttachments.push_back(&renderPassDesc.fDepthStencilAttachment);
187 }
188
189 // TODO: Reference RenderPassDesc to determine number and makeup of subpasses and their
190 // dependencies. For now, we only ever expect 1 (in most cases) or 2 (when loading MSAA).
193 fUint32DataCnt = determine_uint32_count(
195}
skia_private::TArray< const AttachmentDesc * > fAttachments

Member Data Documentation

◆ fAttachments

skia_private::TArray<const AttachmentDesc*> skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fAttachments

Definition at line 80 of file VulkanRenderPass.h.

◆ fHasColorAttachment

bool skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fHasColorAttachment

Definition at line 68 of file VulkanRenderPass.h.

◆ fHasColorResolveAttachment

bool skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fHasColorResolveAttachment

Definition at line 69 of file VulkanRenderPass.h.

◆ fHasDepthStencilAttachment

bool skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fHasDepthStencilAttachment

Definition at line 70 of file VulkanRenderPass.h.

◆ fLoadMSAAFromResolve

bool skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fLoadMSAAFromResolve

Definition at line 67 of file VulkanRenderPass.h.

◆ fNumColorAttachments

int skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fNumColorAttachments

Definition at line 72 of file VulkanRenderPass.h.

◆ fNumDepthStencilAttachments

int skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fNumDepthStencilAttachments

Definition at line 74 of file VulkanRenderPass.h.

◆ fNumResolveAttachments

int skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fNumResolveAttachments

Definition at line 73 of file VulkanRenderPass.h.

◆ fSubpassCount

int skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fSubpassCount

Definition at line 75 of file VulkanRenderPass.h.

◆ fSubpassDependencyCount

int skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fSubpassDependencyCount

Definition at line 76 of file VulkanRenderPass.h.

◆ fUint32DataCnt

int skgpu::graphite::VulkanRenderPass::VulkanRenderPassMetaData::fUint32DataCnt

Definition at line 77 of file VulkanRenderPass.h.


The documentation for this struct was generated from the following files: