Flutter Engine
The Flutter Engine
|
#include <MtlRenderCommandEncoder.h>
Public Member Functions | |
const char * | getResourceType () const override |
void | setLabel (NSString *label) |
void | pushDebugGroup (NSString *string) |
void | popDebugGroup () |
void | insertDebugSignpost (NSString *string) |
void | setRenderPipelineState (id< MTLRenderPipelineState > pso) |
void | setTriangleFillMode (MTLTriangleFillMode fillMode) |
void | setFrontFacingWinding (MTLWinding winding) |
void | setViewport (const MTLViewport &viewport) |
void | setVertexBuffer (id< MTLBuffer > buffer, NSUInteger offset, NSUInteger index) |
void | setVertexBufferOffset (NSUInteger offset, NSUInteger index) SK_API_AVAILABLE(macos(10.11) |
void | ios (8.3) |
void | tvos (9.0)) |
void | setFragmentBuffer (id< MTLBuffer > buffer, NSUInteger offset, NSUInteger index) |
void | setFragmentBufferOffset (NSUInteger offset, NSUInteger index) SK_API_AVAILABLE(macos(10.11) |
void | ios (8.3) |
void | tvos (9.0)) |
void | setVertexBytes (const void *bytes, NSUInteger length, NSUInteger index) SK_API_AVAILABLE(macos(10.11) |
void | ios (8.3) |
void | tvos (9.0)) |
void | setFragmentBytes (const void *bytes, NSUInteger length, NSUInteger index) SK_API_AVAILABLE(macos(10.11) |
void | ios (8.3) |
void | tvos (9.0)) |
void | setFragmentTexture (id< MTLTexture > texture, NSUInteger index) |
void | setFragmentSamplerState (id< MTLSamplerState > sampler, NSUInteger index) |
void | setBlendColor (float blendConst[4]) |
void | setStencilReferenceValue (uint32_t referenceValue) |
void | setDepthStencilState (id< MTLDepthStencilState > depthStencilState) |
void | setScissorRect (const MTLScissorRect &scissorRect) |
void | drawPrimitives (MTLPrimitiveType primitiveType, NSUInteger vertexStart, NSUInteger vertexCount) |
void | drawPrimitives (MTLPrimitiveType primitiveType, NSUInteger vertexStart, NSUInteger vertexCount, NSUInteger instanceCount, NSUInteger baseInstance) SK_API_AVAILABLE(macos(10.11) |
void | ios (9.0) |
void | tvos (9.0)) |
void | drawPrimitives (MTLPrimitiveType primitiveType, id< MTLBuffer > indirectBuffer, NSUInteger indirectBufferOffset) SK_API_AVAILABLE(macos(10.11) |
void | ios (9.0) |
void | tvos (9.0)) |
void | drawIndexedPrimitives (MTLPrimitiveType primitiveType, NSUInteger indexCount, MTLIndexType indexType, id< MTLBuffer > indexBuffer, NSUInteger indexBufferOffset) |
void | drawIndexedPrimitives (MTLPrimitiveType primitiveType, NSUInteger indexCount, MTLIndexType indexType, id< MTLBuffer > indexBuffer, NSUInteger indexBufferOffset, NSUInteger instanceCount, NSInteger baseVertex, NSUInteger baseInstance) SK_API_AVAILABLE(macos(10.11) |
void | ios (9.0) |
void | tvos (9.0)) |
void | drawIndexedPrimitives (MTLPrimitiveType primitiveType, MTLIndexType indexType, id< MTLBuffer > indexBuffer, NSUInteger indexBufferOffset, id< MTLBuffer > indirectBuffer, NSUInteger indirectBufferOffset) SK_API_AVAILABLE(macos(10.11) |
void | ios (9.0) |
void | tvos (9.0)) |
void | endEncoding () |
Public Member Functions inherited from skgpu::graphite::Resource | |
Resource (const Resource &)=delete | |
Resource (Resource &&)=delete | |
Resource & | operator= (const Resource &)=delete |
Resource & | operator= (Resource &&)=delete |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
Ownership | ownership () const |
skgpu::Budgeted | budgeted () const |
size_t | gpuMemorySize () const |
UniqueID | uniqueID () const |
virtual const char * | getResourceType () const =0 |
std::string | getLabel () const |
void | setLabel (std::string_view label) |
bool | wasDestroyed () const |
const GraphiteResourceKey & | key () const |
void | setKey (const GraphiteResourceKey &key) |
void | dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const |
virtual void | prepareForReturnToCache (const std::function< void()> &takeRef) |
Static Public Member Functions | |
static sk_sp< MtlRenderCommandEncoder > | Make (const SharedContext *sharedContext, id< MTLCommandBuffer > commandBuffer, MTLRenderPassDescriptor *descriptor) |
Additional Inherited Members | |
Protected Member Functions inherited from skgpu::graphite::Resource | |
Resource (const SharedContext *, Ownership, skgpu::Budgeted, size_t gpuMemorySize, bool commandBufferRefsAsUsageRefs=false) | |
virtual | ~Resource () |
const SharedContext * | sharedContext () const |
virtual void | onDumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump, const char *dumpName) const |
void | setDeleteASAP () |
Wraps a MTLRenderCommandEncoder object and associated tracked state
Definition at line 22 of file MtlRenderCommandEncoder.h.
void skgpu::graphite::MtlRenderCommandEncoder::drawIndexedPrimitives | ( | MTLPrimitiveType | primitiveType, |
MTLIndexType | indexType, | ||
id< MTLBuffer > | indexBuffer, | ||
NSUInteger | indexBufferOffset, | ||
id< MTLBuffer > | indirectBuffer, | ||
NSUInteger | indirectBufferOffset | ||
) |
|
inline |
Definition at line 214 of file MtlRenderCommandEncoder.h.
void skgpu::graphite::MtlRenderCommandEncoder::drawIndexedPrimitives | ( | MTLPrimitiveType | primitiveType, |
NSUInteger | indexCount, | ||
MTLIndexType | indexType, | ||
id< MTLBuffer > | indexBuffer, | ||
NSUInteger | indexBufferOffset, | ||
NSUInteger | instanceCount, | ||
NSInteger | baseVertex, | ||
NSUInteger | baseInstance | ||
) |
void skgpu::graphite::MtlRenderCommandEncoder::drawPrimitives | ( | MTLPrimitiveType | primitiveType, |
id< MTLBuffer > | indirectBuffer, | ||
NSUInteger | indirectBufferOffset | ||
) |
|
inline |
Definition at line 190 of file MtlRenderCommandEncoder.h.
void skgpu::graphite::MtlRenderCommandEncoder::drawPrimitives | ( | MTLPrimitiveType | primitiveType, |
NSUInteger | vertexStart, | ||
NSUInteger | vertexCount, | ||
NSUInteger | instanceCount, | ||
NSUInteger | baseInstance | ||
) |
|
inline |
Definition at line 252 of file MtlRenderCommandEncoder.h.
|
inlineoverridevirtual |
Implements skgpu::graphite::Resource.
Definition at line 38 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 50 of file MtlRenderCommandEncoder.h.
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 8. | 3 | ) |
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 8. | 3 | ) |
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 8. | 3 | ) |
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 8. | 3 | ) |
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 9. | 0 | ) |
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 9. | 0 | ) |
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 9. | 0 | ) |
void skgpu::graphite::MtlRenderCommandEncoder::ios | ( | 9. | 0 | ) |
|
inlinestatic |
Definition at line 24 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 47 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 44 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 160 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 173 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 103 of file MtlRenderCommandEncoder.h.
void skgpu::graphite::MtlRenderCommandEncoder::setFragmentBufferOffset | ( | NSUInteger | offset, |
NSUInteger | index | ||
) |
void skgpu::graphite::MtlRenderCommandEncoder::setFragmentBytes | ( | const void * | bytes, |
NSUInteger | length, | ||
NSUInteger | index | ||
) |
|
inline |
Definition at line 151 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 143 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 68 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 40 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 54 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 180 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 167 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 61 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 76 of file MtlRenderCommandEncoder.h.
void skgpu::graphite::MtlRenderCommandEncoder::setVertexBufferOffset | ( | NSUInteger | offset, |
NSUInteger | index | ||
) |
void skgpu::graphite::MtlRenderCommandEncoder::setVertexBytes | ( | const void * | bytes, |
NSUInteger | length, | ||
NSUInteger | index | ||
) |
|
inline |
Definition at line 72 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 94 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 121 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 131 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 137 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 199 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 208 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 229 of file MtlRenderCommandEncoder.h.
|
inline |
Definition at line 243 of file MtlRenderCommandEncoder.h.