WebGL Features and Limits

When developing generative artwork for Layer, it's important to understand the WebGL capabilities available on target devices and any hardware-specific limitations.

Device Compatibility

Your artwork will run on devices with varying WebGL capabilities. Screenshots and final artwork are captured on devices with the Snapdragon 8 Gen 2 chipset, which represents the target platform for Layer artwork.

When optimizing your artwork, consider testing on or emulating devices with this chipset to ensure consistent visual output and performance. The WebGL capabilities of this device define the baseline for feature support.

Key Considerations

WebGL 2.0 support
Verify that your WebGL code is compatible with WebGL 2.0
Texture limits
Be aware of maximum texture sizes and count on target devices
Shader complexity
Keep shader code optimized for mobile GPUs
Memory constraints
Monitor VRAM usage, especially with high-resolution textures
Precision
Use appropriate precision qualifiers in shaders for mobile devices

Testing Recommendations

To ensure your artwork renders correctly on target devices:

Test on a Snapdragon 8 Gen 2 device or equivalent
Monitor GPU usage and thermal performance
Verify WebGL capabilities using gl.getParameter()
Test with various parameter combinations
Validate rendering consistency across multiple runs