offsetOf method

int offsetOf(
  1. String name
)

The std140 byte offset of name, or throws if it is unknown.

Implementation

int offsetOf(String name) => _slot(name, null).offsetBytes;