Flutter Engine
The Flutter Engine
|
#include <GrMtlPipelineState.h>
Public Types | |
using | UniformInfoArray = GrMtlPipelineStateDataManager::UniformInfoArray |
using | UniformHandle = GrGLSLProgramDataManager::UniformHandle |
Public Member Functions | |
GrMtlPipelineState (GrMtlGpu *, sk_sp< GrMtlRenderPipeline > pipeline, MTLPixelFormat, const GrGLSLBuiltinUniformHandles &builtinUniformHandles, const UniformInfoArray &uniforms, uint32_t uniformBufferSize, uint32_t numSamplers, std::unique_ptr< GrGeometryProcessor::ProgramImpl >, std::unique_ptr< GrXferProcessor::ProgramImpl >, std::vector< std::unique_ptr< GrFragmentProcessor::ProgramImpl > > fpImpls) | |
const sk_sp< GrMtlRenderPipeline > & | pipeline () const |
void | setData (GrMtlFramebuffer *, const GrProgramInfo &) |
void | setTextures (const GrGeometryProcessor &, const GrPipeline &, const GrSurfaceProxy *const geomProcTextures[]) |
void | bindTextures (GrMtlRenderCommandEncoder *renderCmdEncoder) |
void | setDrawState (GrMtlRenderCommandEncoder *, const skgpu::Swizzle &writeSwizzle, const GrXferProcessor &) |
bool | doesntSampleAttachment (const MTLRenderPassAttachmentDescriptor *) const |
Static Public Member Functions | |
static void | SetDynamicScissorRectState (GrMtlRenderCommandEncoder *renderCmdEncoder, SkISize colorAttachmentDimensions, GrSurfaceOrigin rtOrigin, SkIRect scissorRect) |
Wraps a MTLRenderPipelineState object and also contains more info about the pipeline as needed by Ganesh
Definition at line 33 of file GrMtlPipelineState.h.
using GrMtlPipelineState::UniformHandle = GrGLSLProgramDataManager::UniformHandle |
Definition at line 36 of file GrMtlPipelineState.h.
Definition at line 35 of file GrMtlPipelineState.h.
GrMtlPipelineState::GrMtlPipelineState | ( | GrMtlGpu * | gpu, |
sk_sp< GrMtlRenderPipeline > | pipeline, | ||
MTLPixelFormat | pixelFormat, | ||
const GrGLSLBuiltinUniformHandles & | builtinUniformHandles, | ||
const UniformInfoArray & | uniforms, | ||
uint32_t | uniformBufferSize, | ||
uint32_t | numSamplers, | ||
std::unique_ptr< GrGeometryProcessor::ProgramImpl > | gpImpl, | ||
std::unique_ptr< GrXferProcessor::ProgramImpl > | xpImpl, | ||
std::vector< std::unique_ptr< GrFragmentProcessor::ProgramImpl > > | fpImpls | ||
) |
Definition at line 40 of file GrMtlPipelineState.mm.
void GrMtlPipelineState::bindTextures | ( | GrMtlRenderCommandEncoder * | renderCmdEncoder | ) |
Definition at line 130 of file GrMtlPipelineState.mm.
bool GrMtlPipelineState::doesntSampleAttachment | ( | const MTLRenderPassAttachmentDescriptor * | attachment | ) | const |
Definition at line 228 of file GrMtlPipelineState.mm.
|
inline |
Definition at line 49 of file GrMtlPipelineState.h.
void GrMtlPipelineState::setData | ( | GrMtlFramebuffer * | framebuffer, |
const GrProgramInfo & | programInfo | ||
) |
Definition at line 63 of file GrMtlPipelineState.mm.
void GrMtlPipelineState::setDrawState | ( | GrMtlRenderCommandEncoder * | renderCmdEncoder, |
const skgpu::Swizzle & | writeSwizzle, | ||
const GrXferProcessor & | xferProcessor | ||
) |
Definition at line 118 of file GrMtlPipelineState.mm.
|
static |
Definition at line 202 of file GrMtlPipelineState.mm.
void GrMtlPipelineState::setTextures | ( | const GrGeometryProcessor & | geomProc, |
const GrPipeline & | pipeline, | ||
const GrSurfaceProxy *const | geomProcTextures[] | ||
) |
Definition at line 95 of file GrMtlPipelineState.mm.