summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50615-block_literal_protocol.m
blob: 35879a0eb2471546388af300ff0e3d1aff446b75 (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