vvvv / VL.StandardLibs

A collection of standard libraries for vvvv including VL.Stride, VL.Skia, VL.ImGui, msgpack.org[VL]
https://visualprogramming.net
GNU Lesser General Public License v3.0
35 stars 14 forks source link

[Stride] Changes the pin types of `ColorMap`, `ColorIn` (and others) to `GPU<RGBA>` #644

Closed azeno closed 6 months ago

azeno commented 1 year ago

PR Details

Description

This PR contains breaking changes as it changes the type on well knows nodes like ColorMap and ColorIn as well as internal sink nodes like ComposeDrawShader.

There are probably even more places where the type should be changed to GPU<RGBA>. We should further ensure that conversion nodes from RGBA and Color4 are present. Note that those nodes will be a no-op on GPU side.

Related Issue

643

Motivation and Context

Once we start add/change shaders to make use of GPU<RGBA> pins it's only logical to be able to connect those pins to the obvious candidates such as ColorMap or ColorIn. Also sink nodes composing a pixel shader should express their intent by using this new pin type.

Types of changes

Checklist

joreg commented 11 months ago
azeno commented 9 months ago

652 should be merged first before continuing work on this one.

joreg commented 7 months ago
azeno commented 7 months ago

helppatches of texturefx nodes are not found: eg. press F1 on the Metallica node

fixed many shader related enums are still in main Stride pack under "Advanced" aspect

done some "Experimental" Filters are still in main Stride pack

moved shall we only allow ComputeColor instead of also the [Color] attribute for ComputeFloat4?

done (https://github.com/vvvv/VL.StandardLibs/commit/bdc69139c6bc4cbea321998c4e356c16f976e75d) shall we also add a "VectorMap" node that returns GPU(Vector4)? and then SwizzleMap...

no, use new Convert (RGBAToVector4) for that SetAlpha has Mask GPU(Vector4) input, see keying help

use new Convert (RGBAToVector4)

joreg commented 6 months ago