summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/block_literal_protocol.m
blob: 02d1cfca7a69ab0460617209986a69a8b3ada26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#import <Foundation/Foundation.h>

@interface TestClass : NSObject
@end

@implementation TestClass

- (void)drawSomething:(id<MTLCommandBuffer>)commandBuffer {
    [renderPass performDrawBlock:^(id<MTLRenderCommandEncoder> renderCommandEncoder) {
        screenBlitObject.texture = src;

        // Make sure the pipeline state pixelformat is the same as destination pixel format
        [screenBlitObject updatePipelineState:dst.pixelFormat];

        [screenBlitObject drawWithRenderCommandEncoder:renderCommandEncoder];
    } withTargetTexture:dst andCommandBuffer:commandBuffer];
}

@end