Canvas
Canvas copied to clipboard
Failed to execute 'texImage2D' on 'WebGLRenderingContext': Valid arities are: [6, 9], but 8 arguments provided
Failed to execute 'texImage2D' on 'WebGLRenderingContext': Valid arities are: [6, 9], but 8 arguments provided
uint[] tempData = new uint[4]{ 255, 255, 255,255 } ;
var texture = await _context.CreateTextureAsync();
await _context.BindTextureAsync(TextureType.TEXTURE_2D, texture);
await _context.TexImage2DAsync<uint>(Texture2DType.TEXTURE_2D, 0, PixelFormat.RGBA, 1, 1
, PixelFormat.RGBA, PixelType.UNSIGNED_BYTE, tempData);
I'm not sure my usage is correct , throw this error when the program executes to TexImage2DAsync.
https://github.com/BlazorExtensions/Canvas/pull/60 already fixed missing "border" parameter, but nuget has not update.