Package com.aspose.threed
Class DescriptorSetUpdater
- java.lang.Object
-
- com.aspose.threed.DescriptorSetUpdater
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class DescriptorSetUpdater extends java.lang.Object implements java.io.Closeable
This class allows to update theIDescriptorSet
in a chain operation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 setDescriptorSetUpdater
bind(IBuffer buffer)
Bind the entire buffer to current descriptorDescriptorSetUpdater
bind(IBuffer buffer, int offset, int size)
Bind the buffer to current descriptor setDescriptorSetUpdater
bind(ITextureUnit texture)
Bind the texture unit to current descriptor setvoid
close()
Dispose the updater and commit the changes to hardware device.
-
-
-
Method Detail
-
bind
public DescriptorSetUpdater bind(IBuffer buffer, int offset, int size)
Bind the buffer to current descriptor set- Parameters:
buffer
- Which buffer to bindoffset
- Offset of the buffer to bindsize
- Size of the buffer to bind- Returns:
- Return current instance for chaining operation
-
bind
public DescriptorSetUpdater bind(IBuffer buffer)
Bind the entire buffer to current descriptor- Parameters:
buffer
-- Returns:
- Return current instance for chaining operation
-
bind
public DescriptorSetUpdater bind(int binding, IBuffer buffer)
Bind the buffer to current descriptor set at specified binding location.- Parameters:
binding
- Binding locationbuffer
- The entire buffer to bind- Returns:
- Return current instance for chaining operation
-
bind
public DescriptorSetUpdater bind(int binding, IBuffer buffer, int offset, int size)
Bind the buffer to current descriptor set at specified binding location.- Parameters:
binding
- Binding locationbuffer
- The buffer to bindoffset
- Offset of the buffer to bindsize
- Size of the buffer to bind- Returns:
- Return current instance for chaining operation
-
bind
public DescriptorSetUpdater bind(ITextureUnit texture)
Bind the texture unit to current descriptor set- Parameters:
texture
- The texture unit to bind- Returns:
- Return current instance for chaining operation
-
bind
public DescriptorSetUpdater bind(int binding, ITextureUnit texture)
Bind the texture unit to current descriptor set- Parameters:
binding
- The binding locationtexture
- The texture unit to bind- Returns:
- Return current instance for chaining operation
-
close
public void close()
Dispose the updater and commit the changes to hardware device.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-