gfx-rs / gfx_scene

deprecated
Apache License 2.0
15 stars 1 forks source link

Allow `Material` to carry rendering primitives #20

Closed kvark closed 9 years ago

kvark commented 9 years ago

The current assumption is that a material is just a bunch of parameters, and the technique compiles a batch based on it. However, it seems vital to allow storing textures in materials directly, and maybe even programs and states. Somehow, this needs to propagate via Kernel into the compile argument and live long enough.

EDIT: textures are fine, since they are part of program parameters, which can just be applied in fix_params.

kvark commented 9 years ago

Seems to be irrelevant any more. Will reopen if find other limitations of Material.