Package com.mojang.blaze3d.resource
Part 1/1
CrossFrameResourcePool
- Full name:
com.mojang.blaze3d.resource.CrossFrameResourcePool - Package:
com.mojang.blaze3d.resource - Source:
clientOnly—com/mojang/blaze3d/resource/CrossFrameResourcePool.java - Type:
class - Modifiers:
public - Implements:
GraphicsResourceAllocator,AutoCloseable
com.mojang.blaze3d.resource.CrossFrameResourcePool#acquire(ResourceDescriptor<T>)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:32 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ acquire ตาม implementation ของ CrossFrameResourcePool
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: iterator(), hasNext(), next(), equals(), remove(), allocate(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ResourceDescriptor<T> resourceDescriptor
ตัวอย่างใช้งาน
CrossFrameResourcePool instance = ...;
ResourceDescriptor<T> resourceDescriptor = ...;
T result = instance.acquire(resourceDescriptor);
com.mojang.blaze3d.resource.CrossFrameResourcePool#clear()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:52 - Modifiers:
public - Return:
void
คืออะไร
ล้าง clear
ทำงานยังไง
เรียกต่อ: forEach().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.resource.CrossFrameResourcePool#close()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:57 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
เรียกต่อ: clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.resource.CrossFrameResourcePool#CrossFrameResourcePool(int)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CrossFrameResourcePool ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: framesToKeepResource.
Parameters
int i
ตัวอย่างใช้งาน
com.mojang.blaze3d.resource.CrossFrameResourcePool#endFrame()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:20 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ endFrame ตาม implementation ของ CrossFrameResourcePool
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: iterator(), hasNext(), next(), close(), remove().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.resource.CrossFrameResourcePool#entries()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:62 - Modifiers:
protected - Return:
Collection<CrossFrameResourcePool.ResourceEntry<?>>
คืออะไร
ดำเนินการ entries ตาม implementation ของ CrossFrameResourcePool
ทำงานยังไง
คืนค่า: this.pool.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected Collection<CrossFrameResourcePool.ResourceEntry<?>> entries() {
return super.entries();
}
com.mojang.blaze3d.resource.CrossFrameResourcePool#release(ResourceDescriptor<T>,T)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:47 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ release ตาม implementation ของ CrossFrameResourcePool
ทำงานยังไง
เรียกต่อ: addFirst(). สร้างออบเจ็กต์: CrossFrameResourcePool.ResourceEntry<>.
Parameters
ResourceDescriptor<T> resourceDescriptorT object
ตัวอย่างใช้งาน
CrossFrameResourcePool instance = ...;
ResourceDescriptor<T> resourceDescriptor = ...;
T object = ...;
instance.release(resourceDescriptor, object);
CrossFrameResourcePool$ResourceEntry
- Full name:
com.mojang.blaze3d.resource.CrossFrameResourcePool$ResourceEntry - Package:
com.mojang.blaze3d.resource - Source:
clientOnly—com/mojang/blaze3d/resource/CrossFrameResourcePool.java - Type:
class - Modifiers:
protected static final - Implements:
AutoCloseable
com.mojang.blaze3d.resource.CrossFrameResourcePool$ResourceEntry#close()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/CrossFrameResourcePool.java:80 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
เรียกต่อ: free().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
GraphicsResourceAllocator
- Full name:
com.mojang.blaze3d.resource.GraphicsResourceAllocator - Package:
com.mojang.blaze3d.resource - Source:
clientOnly—com/mojang/blaze3d/resource/GraphicsResourceAllocator.java - Type:
interface - Modifiers:
public
com.mojang.blaze3d.resource.GraphicsResourceAllocator#acquire(ResourceDescriptor<T>)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/GraphicsResourceAllocator.java:20 - Modifiers: ``
- Return:
T
คืออะไร
ดำเนินการ acquire ตาม implementation ของ GraphicsResourceAllocator
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceDescriptor<T> resourceDescriptor
ตัวอย่างใช้งาน
GraphicsResourceAllocator instance = ...;
ResourceDescriptor<T> resourceDescriptor = ...;
T result = instance.acquire(resourceDescriptor);
com.mojang.blaze3d.resource.GraphicsResourceAllocator#release(ResourceDescriptor<T>,T)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/GraphicsResourceAllocator.java:22 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ release ตาม implementation ของ GraphicsResourceAllocator
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceDescriptor<T> resourceDescriptorT object
ตัวอย่างใช้งาน
GraphicsResourceAllocator instance = ...;
ResourceDescriptor<T> resourceDescriptor = ...;
T object = ...;
instance.release(resourceDescriptor, object);
RenderTargetDescriptor
- Full name:
com.mojang.blaze3d.resource.RenderTargetDescriptor - Package:
com.mojang.blaze3d.resource - Source:
clientOnly—com/mojang/blaze3d/resource/RenderTargetDescriptor.java - Type:
record - Modifiers:
public - Implements:
ResourceDescriptor<RenderTarget>
com.mojang.blaze3d.resource.RenderTargetDescriptor#allocate()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/RenderTargetDescriptor.java:10 - Modifiers:
public - Return:
RenderTarget
คืออะไร
ดำเนินการ allocate ตาม implementation ของ RenderTargetDescriptor
ทำงานยังไง
สร้างออบเจ็กต์: TextureTarget. คืนค่า: new TextureTarget(this.width, this.height, this.useDepth).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.resource.RenderTargetDescriptor#free(RenderTarget)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/RenderTargetDescriptor.java:14 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ free ตาม implementation ของ RenderTargetDescriptor
ทำงานยังไง
เรียกต่อ: destroyBuffers().
Parameters
RenderTarget renderTarget
ตัวอย่างใช้งาน
RenderTargetDescriptor instance = ...;
RenderTarget renderTarget = ...;
instance.free(renderTarget);
ResourceDescriptor
- Full name:
com.mojang.blaze3d.resource.ResourceDescriptor - Package:
com.mojang.blaze3d.resource - Source:
clientOnly—com/mojang/blaze3d/resource/ResourceDescriptor.java - Type:
interface - Modifiers:
public
com.mojang.blaze3d.resource.ResourceDescriptor#allocate()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/ResourceDescriptor.java:8 - Modifiers: ``
- Return:
T
คืออะไร
ดำเนินการ allocate ตาม implementation ของ ResourceDescriptor
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.resource.ResourceDescriptor#free(T)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/ResourceDescriptor.java:10 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ free ตาม implementation ของ ResourceDescriptor
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
T object
ตัวอย่างใช้งาน
ResourceHandle
- Full name:
com.mojang.blaze3d.resource.ResourceHandle - Package:
com.mojang.blaze3d.resource - Source:
clientOnly—com/mojang/blaze3d/resource/ResourceHandle.java - Type:
interface - Modifiers:
public
com.mojang.blaze3d.resource.ResourceHandle#get()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/ResourceHandle.java:16 - Modifiers: ``
- Return:
T
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.resource.ResourceHandle#invalid()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/resource/ResourceHandle.java:12 - Modifiers:
static - Return:
ResourceHandle<T>
คืออะไร
ดำเนินการ invalid ตาม implementation ของ ResourceHandle
ทำงานยังไง
คืนค่า: (ResourceHandle<T>)INVALID_HANDLE.
Parameters
- ไม่มี