#include <MtlBlitCommandEncoder.h>
|
const char * | getResourceType () const override |
|
void | pushDebugGroup (NSString *string) |
|
void | popDebugGroup () |
|
void | fillBuffer (id< MTLBuffer > buffer, size_t bufferOffset, size_t bytes, uint8_t value) |
|
void | copyFromTexture (id< MTLTexture > texture, SkIRect srcRect, id< MTLBuffer > buffer, size_t bufferOffset, size_t bufferRowBytes) |
|
void | copyFromBuffer (id< MTLBuffer > buffer, size_t bufferOffset, size_t bufferRowBytes, id< MTLTexture > texture, SkIRect dstRect, unsigned int dstLevel) |
|
void | copyTextureToTexture (id< MTLTexture > srcTexture, SkIRect srcRect, id< MTLTexture > dstTexture, SkIPoint dstPoint, int mipLevel) |
|
void | copyBufferToBuffer (id< MTLBuffer > srcBuffer, size_t srcOffset, id< MTLBuffer > dstBuffer, size_t dstOffset, size_t size) |
|
void | endEncoding () |
|
| 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 |
|
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) |
|
Wraps a MTLMtlBlitCommandEncoder object
Definition at line 23 of file MtlBlitCommandEncoder.h.
◆ copyBufferToBuffer()
void skgpu::graphite::MtlBlitCommandEncoder::copyBufferToBuffer |
( |
id< MTLBuffer > |
srcBuffer, |
|
|
size_t |
srcOffset, |
|
|
id< MTLBuffer > |
dstBuffer, |
|
|
size_t |
dstOffset, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Definition at line 105 of file MtlBlitCommandEncoder.h.
109 {
111 sourceOffset: srcOffset
112 toBuffer: dstBuffer
113 destinationOffset: dstOffset
115 }
void copyFromBuffer(id< MTLBuffer > buffer, size_t bufferOffset, size_t bufferRowBytes, id< MTLTexture > texture, SkIRect dstRect, unsigned int dstLevel)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ copyFromBuffer()
void skgpu::graphite::MtlBlitCommandEncoder::copyFromBuffer |
( |
id< MTLBuffer > |
buffer, |
|
|
size_t |
bufferOffset, |
|
|
size_t |
bufferRowBytes, |
|
|
id< MTLTexture > |
texture, |
|
|
SkIRect |
dstRect, |
|
|
unsigned int |
dstLevel |
|
) |
| |
|
inline |
Definition at line 72 of file MtlBlitCommandEncoder.h.
77 {
79 sourceOffset: bufferOffset
80 sourceBytesPerRow: bufferRowBytes
81 sourceBytesPerImage: bufferRowBytes * dstRect.
height()
82 sourceSize: MTLSizeMake(dstRect.
width(), dstRect.
height(), 1)
84 destinationSlice: 0
85 destinationLevel: dstLevel
86 destinationOrigin: MTLOriginMake(dstRect.
left(), dstRect.top(), 0)];
87 }
static bool left(const SkPoint &p0, const SkPoint &p1)
static const uint8_t buffer[]
constexpr int32_t height() const
constexpr int32_t width() const
◆ copyFromTexture()
void skgpu::graphite::MtlBlitCommandEncoder::copyFromTexture |
( |
id< MTLTexture > |
texture, |
|
|
SkIRect |
srcRect, |
|
|
id< MTLBuffer > |
buffer, |
|
|
size_t |
bufferOffset, |
|
|
size_t |
bufferRowBytes |
|
) |
| |
|
inline |
Definition at line 56 of file MtlBlitCommandEncoder.h.
60 {
62 sourceSlice: 0
63 sourceLevel: 0
64 sourceOrigin: MTLOriginMake(srcRect.
left(), srcRect.
top(), 0)
65 sourceSize: MTLSizeMake(srcRect.
width(), srcRect.
height(), 1)
67 destinationOffset: bufferOffset
68 destinationBytesPerRow: bufferRowBytes
69 destinationBytesPerImage: bufferRowBytes * srcRect.
height()];
70 }
void copyFromTexture(id< MTLTexture > texture, SkIRect srcRect, id< MTLBuffer > buffer, size_t bufferOffset, size_t bufferRowBytes)
constexpr int32_t top() const
constexpr int32_t left() const
◆ copyTextureToTexture()
void skgpu::graphite::MtlBlitCommandEncoder::copyTextureToTexture |
( |
id< MTLTexture > |
srcTexture, |
|
|
SkIRect |
srcRect, |
|
|
id< MTLTexture > |
dstTexture, |
|
|
SkIPoint |
dstPoint, |
|
|
int |
mipLevel |
|
) |
| |
|
inline |
Definition at line 89 of file MtlBlitCommandEncoder.h.
93 {
95 sourceSlice: 0
96 sourceLevel: 0
97 sourceOrigin: MTLOriginMake(srcRect.
x(), srcRect.
y(), 0)
98 sourceSize: MTLSizeMake(srcRect.
width(), srcRect.
height(), 1)
99 toTexture: dstTexture
100 destinationSlice: 0
101 destinationLevel: mipLevel
102 destinationOrigin: MTLOriginMake(dstPoint.fX, dstPoint.fY, 0)];
103 }
constexpr int32_t x() const
constexpr int32_t y() const
◆ endEncoding()
void skgpu::graphite::MtlBlitCommandEncoder::endEncoding |
( |
| ) |
|
|
inline |
◆ fillBuffer()
void skgpu::graphite::MtlBlitCommandEncoder::fillBuffer |
( |
id< MTLBuffer > |
buffer, |
|
|
size_t |
bufferOffset, |
|
|
size_t |
bytes, |
|
|
uint8_t |
value |
|
) |
| |
|
inline |
Definition at line 50 of file MtlBlitCommandEncoder.h.
50 {
52 range:NSMakeRange(bufferOffset, bytes)
54 }
void fillBuffer(id< MTLBuffer > buffer, size_t bufferOffset, size_t bytes, uint8_t value)
◆ freeGpuData()
void skgpu::graphite::MtlBlitCommandEncoder::freeGpuData |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ getResourceType()
const char * skgpu::graphite::MtlBlitCommandEncoder::getResourceType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Make()
Definition at line 25 of file MtlBlitCommandEncoder.h.
26 {
27 @autoreleasepool {
28
29 sk_cfp<id<MTLBlitCommandEncoder>>
encoder =
30 sk_ret_cfp<id<MTLBlitCommandEncoder>>([commandBuffer blitCommandEncoder]);
33 }
34 }
const SharedContext * sharedContext() const
◆ popDebugGroup()
void skgpu::graphite::MtlBlitCommandEncoder::popDebugGroup |
( |
| ) |
|
|
inline |
◆ pushDebugGroup()
void skgpu::graphite::MtlBlitCommandEncoder::pushDebugGroup |
( |
NSString * |
string | ) |
|
|
inline |
The documentation for this class was generated from the following file: