Package com.mojang.blaze3d.buffers
Part 1/1
GpuBuffer
- Full name:
com.mojang.blaze3d.buffers.GpuBuffer - Package:
com.mojang.blaze3d.buffers - Source:
clientOnly—com/mojang/blaze3d/buffers/GpuBuffer.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
com.mojang.blaze3d.buffers.GpuBuffer#bind()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:121 - Modifiers:
public - Return:
void
คืออะไร
ผูก bind
ทำงานยังไง
เรียกต่อ: _glBindBuffer().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuBuffer#close()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:110 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: closed. เรียกต่อ: _glDeleteBuffers(), free().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuBuffer#GpuBuffer(BufferType,BufferUsage,ByteBuffer)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:28 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GpuBuffer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: remaining(), write().
Parameters
BufferType bufferTypeBufferUsage bufferUsageByteBuffer byteBuffer
ตัวอย่างใช้งาน
BufferType bufferType = ...;
BufferUsage bufferUsage = ...;
ByteBuffer byteBuffer = ...;
GpuBuffer instance = new GpuBuffer(bufferType, bufferUsage, byteBuffer);
com.mojang.blaze3d.buffers.GpuBuffer#GpuBuffer(BufferType,BufferUsage,int)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GpuBuffer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: type, size, usage, handle. เรียกต่อ: _glGenBuffers().
Parameters
BufferType bufferTypeBufferUsage bufferUsageint i
ตัวอย่างใช้งาน
BufferType bufferType = ...;
BufferUsage bufferUsage = ...;
GpuBuffer instance = new GpuBuffer(bufferType, bufferUsage, 0);
com.mojang.blaze3d.buffers.GpuBuffer#read()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:84 - Modifiers:
public - Return:
GpuBuffer.ReadView
คืออะไร
อ่าน read
ทำงานยังไง
คืนค่า: this.read(0, this.size).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuBuffer#read(int,int)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:89 - Modifiers:
public - Return:
GpuBuffer.ReadView
คืออะไร
อ่าน read
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hold(), bind(), _glMapBufferRange(), ReadView(). สร้างออบเจ็กต์: IllegalStateException, IllegalArgumentException, GpuBuffer.ReadView. คืนค่า: byteBuffer == null ? null : new GpuBuffer.ReadView(this.type.id, byteBuffer).
Parameters
int iint j
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuBuffer#resize(int)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:33 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ resize ตาม implementation ของ GpuBuffer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: size, initialized. เรียกต่อ: free(), bind(), _glBufferData(), malloc(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
int i
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuBuffer#write(ByteBuffer,int)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:53 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: initialized. เรียกต่อ: remaining(), hold(), bind(), _glBufferSubData(), _glBufferData(), malloc(). สร้างออบเจ็กต์: IllegalStateException, IllegalArgumentException.
Parameters
ByteBuffer byteBufferint i
ตัวอย่างใช้งาน
GpuBuffer$ReadView
- Full name:
com.mojang.blaze3d.buffers.GpuBuffer$ReadView - Package:
com.mojang.blaze3d.buffers - Source:
clientOnly—com/mojang/blaze3d/buffers/GpuBuffer.java - Type:
class - Modifiers:
public static - Implements:
AutoCloseable
com.mojang.blaze3d.buffers.GpuBuffer$ReadView#close()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:139 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
เรียกต่อ: _glUnmapBuffer().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuBuffer$ReadView#data()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:135 - Modifiers:
public - Return:
ByteBuffer
คืออะไร
ดำเนินการ data ตาม implementation ของ GpuBuffer$ReadView
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuBuffer$ReadView#ReadView(int,ByteBuffer)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuBuffer.java:130 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GpuBuffer.ReadView ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: target, data.
Parameters
int iByteBuffer byteBuffer
ตัวอย่างใช้งาน
GpuFence
- Full name:
com.mojang.blaze3d.buffers.GpuFence - Package:
com.mojang.blaze3d.buffers - Source:
clientOnly—com/mojang/blaze3d/buffers/GpuFence.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
com.mojang.blaze3d.buffers.GpuFence#awaitCompletion(long)
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuFence.java:19 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ awaitCompletion ตาม implementation ของ GpuFence
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: handle. เรียกต่อ: _glClientWaitSync(). สร้างออบเจ็กต์: IllegalStateException. มีจุด return อย่างน้อย 3 จุด.
Parameters
long l
ตัวอย่างใช้งาน
com.mojang.blaze3d.buffers.GpuFence#close()
- Origin:
clientOnly - Source:
com/mojang/blaze3d/buffers/GpuFence.java:11 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: handle. เรียกต่อ: _glDeleteSync().
Parameters
- ไม่มี