29 lines
762 B
Java
29 lines
762 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.mojang.blaze3d.resource;
|
|
|
|
import com.mojang.blaze3d.resource.ResourceDescriptor;
|
|
|
|
public interface GraphicsResourceAllocator {
|
|
public static final GraphicsResourceAllocator UNPOOLED = new GraphicsResourceAllocator(){
|
|
|
|
@Override
|
|
public <T> T acquire(ResourceDescriptor<T> descriptor) {
|
|
T resource = descriptor.allocate();
|
|
descriptor.prepare(resource);
|
|
return resource;
|
|
}
|
|
|
|
@Override
|
|
public <T> void release(ResourceDescriptor<T> descriptor, T resource) {
|
|
descriptor.free(resource);
|
|
}
|
|
};
|
|
|
|
public <T> T acquire(ResourceDescriptor<T> var1);
|
|
|
|
public <T> void release(ResourceDescriptor<T> var1, T var2);
|
|
}
|
|
|