mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
metal: add internal compute encoder APIs
This commit is contained in:
@@ -129,6 +129,10 @@ public:
|
||||
id<MTLBlitCommandEncoder> getBlitEncoder() const { return blitEncoder; }
|
||||
void submitBlitEncoder();
|
||||
|
||||
id<MTLComputeCommandEncoder> useComputeEncoder();
|
||||
id<MTLComputeCommandEncoder> getComputeEncoder() const { return computeEncoder; }
|
||||
void submitComputeEncoder();
|
||||
|
||||
id<MTLSamplerState> getCachedSampler(const SamplerState &s);
|
||||
|
||||
StreamBuffer *getUniformBuffer() const { return uniformBuffer; }
|
||||
@@ -206,6 +210,7 @@ private:
|
||||
id<MTLCommandBuffer> commandBuffer;
|
||||
id<MTLRenderCommandEncoder> renderEncoder;
|
||||
id<MTLBlitCommandEncoder> blitEncoder;
|
||||
id<MTLComputeCommandEncoder> computeEncoder;
|
||||
|
||||
CAMetalLayer *metalLayer;
|
||||
id<CAMetalDrawable> activeDrawable;
|
||||
|
||||
Reference in New Issue
Block a user