CapturedUniformBlock class Debugging and profiling
One uniform block emplaced for a draw: the packed bytes, resolved to a declared block of the draw's shaders by size when that is unambiguous.
Constructors
-
CapturedUniformBlock(ByteData bytes, {String? resolvedName, List<
({String name, String type, List< ? resolvedValues})num> values})> -
CapturedUniformBlock.fromJson(Map<
String, Object?> json) -
Rebuilds a block from toJson output, keeping the name and values it
was serialized with (a loaded capture has no shaders to resolve
against).
factory
Properties
- byteLength → int
-
no setter
- bytes → ByteData
-
A copy of the packed bytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- resolvedName → String?
-
The name a serialized capture resolved this block to, when loaded.
final
-
resolvedValues
→ List<
({String name, String type, List< ?num> values})> -
The values a serialized capture decoded, when loaded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
candidatesFor(
CapturedDraw draw) → List< ShaderUniformBlockInfo> - Declared blocks of the draw's shaders this buffer can be (see matchUniformBlocks), resolved against loaded reflection. One entry means decode can name it.
-
decode(
CapturedDraw draw) → List< ShaderUniformValue> ? - The decoded members when exactly one declared block matches, else null. Needs the shaders' bundle reflection loaded (see ShaderReflection.loadBundleInfo).
-
nameFor(
CapturedDraw draw) → String? - The block's name when exactly one declared block matches (or the name it was serialized with), else null.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
CapturedDraw draw, {bool includeBytes = false}) → Map< String, Object?> -
Metadata plus the decoded members when resolvable;
includeBytesadds the packed bytes as base64 so a loaded capture can still show them. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited