compile
Asynchronously compile a material variant for specific rendering features.
After issuing multiple compile() calls, call flush() to let the backend begin work. The callback is invoked on the main thread when compilation is complete.
Parameters
Compilation priority (CRITICAL, HIGH, or LOW).
Material to compile variants for.
View providing rendering context.
Whether the material receives shadows.
Whether the material uses skeletal animation.
Optional callback invoked when compilation completes.
Asynchronously compile a material variant for specific rendering features.
After issuing multiple compile() calls, call flush() to let the backend begin work. The callback is invoked on the main thread when compilation is complete.
Parameters
Compilation priority (CRITICAL, HIGH, or LOW).
Material to compile variants for.
View providing rendering context.
Whether the material receives shadows.
Whether the material uses skeletal animation.
Optional callback invoked when compilation completes.
Asynchronously compile a material variant for specific rendering features.
After issuing multiple compile() calls, call flush() to let the backend begin work. The callback is invoked on the main thread when compilation is complete.
Parameters
Compilation priority (CRITICAL, HIGH, or LOW).
Material to compile variants for.
View providing rendering context.
Whether the material receives shadows.
Whether the material uses skeletal animation.
Optional callback invoked when compilation completes.
Asynchronously compile a material variant for specific rendering features.
After issuing multiple compile() calls, call flush() to let the backend begin work. The callback is invoked on the main thread when compilation is complete.
Parameters
Compilation priority (CRITICAL, HIGH, or LOW).
Material to compile variants for.
View providing rendering context.
Whether the material receives shadows.
Whether the material uses skeletal animation.
Optional callback invoked when compilation completes.
Asynchronously compile a material variant for specific rendering features.
After issuing multiple compile() calls, call flush() to let the backend begin work. The callback is invoked on the main thread when compilation is complete.
Parameters
Compilation priority (CRITICAL, HIGH, or LOW).
Material to compile variants for.
View providing rendering context.
Whether the material receives shadows.
Whether the material uses skeletal animation.
Optional callback invoked when compilation completes.