Can ANY HLSL code be used by ENBSeries?

about everything
Post Reply
  • Author
  • Message
Offline
Posts: 82
Joined: 09 Oct 2014, 01:29

Can ANY HLSL code be used by ENBSeries?

Possibly silly question: I want to start learning HLSL, but was wondering if ENB can essentially process "any" HLSL code, or if there are specific guidelines/restrictions? Most of what I want to accomplish initially are 2D post-processing effects (think of ReShade's "Heat Haze" for example) but later on would love to experiment with depth.

Offline
*blah-blah-blah maniac*
Posts: 565
Joined: 05 Apr 2014, 10:29
Location: Taiwan

Re: Can ANY HLSL code be used by ENBSeries?

It dependes, buttom line for a shader to work in ENB is that it can be compile by MS offline effect compiler(fxc.exe), aka in HLSL.

After that, the .fx file has to contain a valid effect for enb to process. (ie, just shader alone can't do anything)

And then, you would need to supply parameters/variable/textures to your shader, if sth is missing, then the shader won't operate as expected, even if it compiles. (for example, dof without depth buffer.)


In detail, enb is using MS EffectFramework as base module to handle .fx effects.

however, there are things that are in the ref but will not work in ENB(dx11), such as:
  • SetCompute/Hull/Domain/GeometryShader -ENB only support VS and PS
  • shader array -tried this once and didn't work in dx11, (is working in dx9)
  • SetDepthStencil/RasterizerState
  • SetRenderTargets
and there might be other things too. (these are just what I can think of right now)

**edit for more detail on the subject
_________________
Intel Xeon L5639 6C12T @3.96GHz | Gigabyte ga-x58a-ud3r | MSI GTX680 4G | 48G RAM | Intel 760p Nvme w clover bootloader
Flickr
YouTube

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17427
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: Can ANY HLSL code be used by ENBSeries?

HLSL is same as programming language, it's not an image or sound file to plug-in and see/listen it. So you should at least set up names of variables wand techniques which are "known" to enbseries to make them work.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
Post Reply