Advertisement

Blending

Started by January 05, 2019 07:12 AM
2 comments, last by nocs13 6 years, 1 month ago

After reading vulkan tutorials, there are still many unanswered questions.

How can I update blending code in already created pipeline? should I delete old and create pipeline?

Updating blend modes are very important for make graphical effects. Pipelines has dynamic states but

blending in not one of 'them'.

You cannot change a pipeline state that is not listed in the dynamic states, you need to make another (others) pipeline(s) and bind the appropriate one in your sub-passe. In such a case, your pipeline layout wouldn't change and your binding would be the same. Perhaps your even use the inheritance feature to simplify the creation.

Vulkan/DX12 are all about pre-backed state.

We think in generalities, but we live in details.
- Alfred North Whitehead
Advertisement

thank you

 

I had afraid it more then anything. if I have 100 different shaders in game I should have 100 pipelines,

if I use different states (like polygon fill or wire, alpha strength for blending, switch clockwise, triangle/line strip or fan)

I must have separated pipelines.  I still not got, what they had in brain when projected such unflexable thing. :(

This topic is closed to new replies.

Advertisement