/** * @since Available in iOS 9.0 and later. */ public MTKTextureLoaderOptions setTextureCPUCacheMode(MTLCPUCacheMode textureCPUCacheMode) { set(Keys.TextureCPUCacheMode(), NSNumber.valueOf(textureCPUCacheMode.value())); return this; } /*</methods>*/
/** * @since Available in iOS 9.0 and later. */ public MTLCPUCacheMode getTextureCPUCacheMode() { if (has(Keys.TextureCPUCacheMode())) { NSNumber val = (NSNumber) get(Keys.TextureCPUCacheMode()); return MTLCPUCacheMode.valueOf(val.longValue()); } return null; } /**
public static /*<name>*/MTLCPUCacheMode/*</name>*/ valueOf(long n) { for (/*<name>*/MTLCPUCacheMode/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/MTLCPUCacheMode/*</name>*/.class.getName()); } }
/** * @since Available in iOS 9.0 and later. */ public MTKTextureLoaderOptions setTextureCPUCacheMode(MTLCPUCacheMode textureCPUCacheMode) { set(Keys.TextureCPUCacheMode(), NSNumber.valueOf(textureCPUCacheMode.value())); return this; } /*</methods>*/
public static /*<name>*/MTLCPUCacheMode/*</name>*/ valueOf(long n) { for (/*<name>*/MTLCPUCacheMode/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/MTLCPUCacheMode/*</name>*/.class.getName()); } }
/** * @since Available in iOS 9.0 and later. */ public MTLCPUCacheMode getTextureCPUCacheMode() { if (has(Keys.TextureCPUCacheMode())) { NSNumber val = (NSNumber) get(Keys.TextureCPUCacheMode()); return MTLCPUCacheMode.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 9.0 and later. */ public MTKTextureLoaderOptions setTextureCPUCacheMode(MTLCPUCacheMode textureCPUCacheMode) { set(Keys.TextureCPUCacheMode(), NSNumber.valueOf(textureCPUCacheMode.value())); return this; } /*</methods>*/
public static /*<name>*/MTLCPUCacheMode/*</name>*/ valueOf(long n) { for (/*<name>*/MTLCPUCacheMode/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/MTLCPUCacheMode/*</name>*/.class.getName()); } }
/** * @since Available in iOS 9.0 and later. */ public MTLCPUCacheMode getTextureCPUCacheMode() { if (has(Keys.TextureCPUCacheMode())) { NSNumber val = (NSNumber) get(Keys.TextureCPUCacheMode()); return MTLCPUCacheMode.valueOf(val.longValue()); } return null; } /**