-
public class BufferObject.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBufferObject.Builder.BindingType
-
Constructor Summary
Constructors Constructor Description BufferObject.Builder()
-
Method Summary
Modifier and Type Method Description BufferObject.Buildersize(@IntRange(from = 1) int byteCount)Size of the buffer in bytes. BufferObject.BuilderbindingType(@NonNull() BufferObject.Builder.BindingType bindingType)The binding type for this buffer object. BufferObjectbuild(@NonNull() Engine engine)Creates and returns the BufferObjectobject.-
-
Method Detail
-
size
@NonNull() BufferObject.Builder size(@IntRange(from = 1) int byteCount)
Size of the buffer in bytes.
- Parameters:
byteCount- Maximum number of bytes the BufferObject can hold.
-
bindingType
@NonNull() BufferObject.Builder bindingType(@NonNull() BufferObject.Builder.BindingType bindingType)
The binding type for this buffer object. (defaults to VERTEX)
- Parameters:
bindingType- Distinguishes between SSBO, VBO, etc.
-
-
-
-