MetalArrayTexture/AAPLArrayTexture.h
/* |
Copyright (C) 2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Simple Utility class for creating a 2d array texture |
*/ |
#import <Metal/Metal.h> |
@interface AAPLArrayTexture : NSObject |
@property (nonatomic, readonly) id <MTLTexture> texture; |
@property (nonatomic, readonly) uint32_t width; |
@property (nonatomic, readonly) uint32_t height; |
- (instancetype)initWithTextureWidth:(NSUInteger)width textureHeight:(NSUInteger)height arrayLength:(NSUInteger)length device:(id <MTLDevice>)device; |
- (BOOL)setSlice:(NSUInteger)slice withContentsOfFile:(NSString *)path; |
@end |
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-03-21