Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Limitations on array sizes in shader

$
0
0

@kosmonautgames wrote:

Monogame won't start if my array size is too large (in my Shader .fx file)

float data[200]; will start
float data[300]; will not start.

Instead it will cast an error "System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' " when loading the effect.

Is this intentional? A buffer size of 300 is really small and larger values are needed for a lot of applications.

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles