public final class DescriptorSetUpdater
extends java.lang.Object
implements java.io.Closeable
IDescriptorSet in a chain operation.| Modifier and Type | Method and Description |
|---|---|
DescriptorSetUpdater |
bind(IBuffer buffer)
Bind the entire buffer to current descriptor
|
DescriptorSetUpdater |
bind(IBuffer buffer,
int offset,
int size)
Bind the buffer to current descriptor set
|
DescriptorSetUpdater |
bind(int binding,
IBuffer buffer)
Bind the buffer to current descriptor set at specified binding location.
|
DescriptorSetUpdater |
bind(int binding,
IBuffer buffer,
int offset,
int size)
Bind the buffer to current descriptor set at specified binding location.
|
DescriptorSetUpdater |
bind(int binding,
ITextureUnit texture)
Bind the texture unit to current descriptor set
|
DescriptorSetUpdater |
bind(ITextureUnit texture)
Bind the texture unit to current descriptor set
|
void |
close()
Dispose the updater and commit the changes to hardware device.
|
public DescriptorSetUpdater bind(IBuffer buffer, int offset, int size)
buffer - Which buffer to bindoffset - Offset of the buffer to bindsize - Size of the buffer to bindpublic DescriptorSetUpdater bind(IBuffer buffer)
buffer - public DescriptorSetUpdater bind(int binding, IBuffer buffer)
binding - Binding locationbuffer - The entire buffer to bindpublic DescriptorSetUpdater bind(int binding, IBuffer buffer, int offset, int size)
binding - Binding locationbuffer - The buffer to bindoffset - Offset of the buffer to bindsize - Size of the buffer to bindpublic DescriptorSetUpdater bind(ITextureUnit texture)
texture - The texture unit to bindpublic DescriptorSetUpdater bind(int binding, ITextureUnit texture)
binding - The binding locationtexture - The texture unit to bindpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable