#include <MtlComputePipeline.h>
Definition at line 23 of file MtlComputePipeline.h.
◆ MSLFunction
◆ ~MtlComputePipeline()
skgpu::graphite::MtlComputePipeline::~MtlComputePipeline |
( |
| ) |
|
|
overridedefault |
◆ Make()
Definition at line 22 of file MtlComputePipeline.mm.
24 {
26 if (!library) {
27 return nullptr;
28 }
29
30 sk_cfp<MTLComputePipelineDescriptor*> psoDescriptor([MTLComputePipelineDescriptor new]);
31
32 (*psoDescriptor).label = @(label.c_str());
33
34 NSString* entryPointName = [NSString stringWithUTF8String:
std::get<1>(computeMain).c_str()];
35 (*psoDescriptor).computeFunction = [library newFunctionWithName:entryPointName];
36
37
38
39
40
41
42
43
44
45
46
47
48
50 sk_cfp<id<MTLComputePipelineState>> pso([
sharedContext->device()
51 newComputePipelineStateWithDescriptor:psoDescriptor.get()
53 reflection:nil
55 if (!pso) {
56 SKGPU_LOG_E(
"Compute pipeline creation failure:\n%s",
error.debugDescription.UTF8String);
57 return nullptr;
58 }
59
61}
#define SKGPU_LOG_E(fmt,...)
const SharedContext * sharedContext() const
const uint8_t uint32_t uint32_t GError ** error
const myers::Point & get< 1 >(const myers::Segment &s)
const myers::Point & get< 0 >(const myers::Segment &s)
◆ mtlPipelineState()
id< MTLComputePipelineState > skgpu::graphite::MtlComputePipeline::mtlPipelineState |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: