gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 547 forks source link

Transient textures. #1390

Open quadrupleslap opened 7 years ago

quadrupleslap commented 7 years ago

I'm probably missing something, but there doesn't seem to be a way to hint that a texture is transient. This would probably be a Bind flag.

kvark commented 7 years ago

@quadrupleslap in what sense do you want a texture to be transient?

Frostbite uses transient targets in this presentation. For them to be supported, we need to separate memory allocation from resource assignment to memory. This is addressed in the actively developed CoreLL logic, see https://github.com/gfx-rs/gfx/issues/1102