Skip to content

Implements Texture3D for BlazorGL#2646

Open
squarebananas wants to merge 10 commits into
kniEngine:mainfrom
squarebananas:BlazorTexture3D
Open

Implements Texture3D for BlazorGL#2646
squarebananas wants to merge 10 commits into
kniEngine:mainfrom
squarebananas:BlazorTexture3D

Conversation

@squarebananas

Copy link
Copy Markdown
Contributor

Implements Texture3D for BlazorGL.

Compressed format support is not currently possible with Texture3D as WebGL only supports ASTC & BPTC for this texture type (unlike Texture2D and TextureCube which allow formats like DXT). For now a NotImplementedException is thrown. However the WebGL methods are still included for future use in case new SurfaceFormat types are added to Kni at a later date.

This PR is dependent on the following PRs:

Test project: https://github.com/squarebananas/XnaApiTesting

In order to run the test project, the following workaround is needed for ConcreteShader.CreateShader:
glslCode = glslCode.Replace("precision highp float;", "precision highp float;\nprecision highp sampler3D;");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant