DescriptorSetUpdater
Inheritance: java.lang.Object
All Implemented Interfaces: java.io.Closeable
public final class DescriptorSetUpdater implements Closeable
此类允许在链式操作中更新 IDescriptorSet。
方法
| 方法 | 描述 |
|---|---|
| bind(IBuffer buffer) | 将整个缓冲区绑定到当前描述符 |
| bind(IBuffer buffer, int offset, int size) | 将缓冲区绑定到当前描述符集 |
| bind(ITextureUnit texture) | 将纹理单元绑定到当前描述符集 |
| bind(int binding, IBuffer buffer) | 在指定的绑定位置将缓冲区绑定到当前描述符集。 |
| bind(int binding, IBuffer buffer, int offset, int size) | 在指定的绑定位置将缓冲区绑定到当前描述符集。 |
| bind(int binding, ITextureUnit texture) | 将纹理单元绑定到当前描述符集 |
| close() | 释放更新器并将更改提交到硬件设备。 |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
bind(IBuffer buffer)
public DescriptorSetUpdater bind(IBuffer buffer)
将整个缓冲区绑定到当前描述符
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| buffer | IBuffer |
Returns: DescriptorSetUpdater - Return current instance for chaining operation
bind(IBuffer buffer, int offset, int size)
public DescriptorSetUpdater bind(IBuffer buffer, int offset, int size)
将缓冲区绑定到当前描述符集
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| buffer | IBuffer | 要绑定哪个缓冲区 |
| 偏移 | int | 要绑定的缓冲区的偏移量 |
| 大小 | int | 要绑定的缓冲区的大小 |
Returns: DescriptorSetUpdater - Return current instance for chaining operation
bind(ITextureUnit texture)
public DescriptorSetUpdater bind(ITextureUnit texture)
将纹理单元绑定到当前描述符集
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| texture | ITextureUnit | 要绑定的纹理单元 |
Returns: DescriptorSetUpdater - Return current instance for chaining operation
bind(int binding, IBuffer buffer)
public DescriptorSetUpdater bind(int binding, IBuffer buffer)
在指定的绑定位置将缓冲区绑定到当前描述符集。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 绑定 | int | 绑定位置 |
| buffer | IBuffer | 要绑定的整个缓冲区 |
Returns: DescriptorSetUpdater - Return current instance for chaining operation
bind(int binding, IBuffer buffer, int offset, int size)
public DescriptorSetUpdater bind(int binding, IBuffer buffer, int offset, int size)
在指定的绑定位置将缓冲区绑定到当前描述符集。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 绑定 | int | 绑定位置 |
| buffer | IBuffer | 要绑定的缓冲区 |
| 偏移 | int | 要绑定的缓冲区的偏移量 |
| 大小 | int | 要绑定的缓冲区的大小 |
Returns: DescriptorSetUpdater - Return current instance for chaining operation
bind(int binding, ITextureUnit texture)
public DescriptorSetUpdater bind(int binding, ITextureUnit texture)
将纹理单元绑定到当前描述符集
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 绑定 | int | 绑定位置 |
| texture | ITextureUnit | 要绑定的纹理单元 |
Returns: DescriptorSetUpdater - Return current instance for chaining operation
close()
public void close()
释放更新器并将更改提交到硬件设备。
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |