10000 gl.CreateTextures(GLEnum || TextureTarget target, uint n, uint* textures); needs a gl.CreateTexture helper like gl.GenTexture · Issue #1249 · dotnet/Silk.NET · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
gl.CreateTextures(GLEnum || TextureTarget target, uint n, uint* textures); needs a gl.CreateTexture helper like gl.GenTexture #1249
Closed
@tilkinsc

Description

@tilkinsc

Summary of feature

Its typical to create a singular texture instead of a batch of textures. It's not really fun/clean to have to go unsafe, use an out param, the built in texture type, or spans to get out a singular initialized-to-default texture handle for DSA. It's typical enough to warrant a GenTexture overload for GenTextures.

Recommended declarations:

uint CreateTexture(GLEnum target);
uint CreateTexture(TextureTarget target);
Texture CreateTexture(TextureTarget target);

I would also like there to be a removal of Texture because its existence makes making a Texture class a nightmare because you have to specify it from namespace which you want to use.

Does this have a proposal?

No.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0