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.
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
texturesin materials directly, and maybe even programs and states. Somehow, this needs to propagate viaKernel
into thecompile
argument and live long enough.EDIT: textures are fine, since they are part of program parameters, which can just be applied in
fix_params
.