dx11-vvvv icon indicating copy to clipboard operation
dx11-vvvv copied to clipboard

Technique Enum

Open antongit opened this issue 8 years ago • 1 comments

Dear mr.Vux,

I have several DX11 Effects side by side (let's say just Constant (DX11.Effect)). Now I want to use the same Technique for all of them. Unfortunately it's not possible to connect one Enum IOBox or Ord2Enum (Enumerations) to all of them.

Can this be fixed or this is by design?

Thank you! Anton

antongit avatar Feb 01 '17 15:02 antongit

Issue is that you have another pin, which allows you to set compilation instructions to shader (in patch), so actually the same shader can have different techniques.

As far as i know this is also used a bit, so it's not something I can remove.

Still, I guess that should be possible to have a default technique enum, and if shader has no defines set, use that one common to all, otherwise use it own.

I'll have to test it tho, no guaranteee yet.

mrvux avatar Feb 01 '17 17:02 mrvux