< prev index next > src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLContext.m
Print this page
@synthesize textureFunction,
vertexCacheEnabled, aaEnabled, device, library, pipelineStateStorage,
commandQueue, vertexBuffer,
texturePool;
+ extern void initSamplers(id<MTLDevice> device);
+
- (id)initWithDevice:(id<MTLDevice>)d shadersLib:(NSString*)shadersLib {
self = [super init];
if (self) {
// Initialization code here.
device = d;
_commandBufferWrapper = nil;
// Create command queue
commandQueue = [device newCommandQueue];
+
+ initSamplers(device);
}
return self;
}
- (void)dealloc {
< prev index next >