Please use english language
It is currently 21 Feb 2018, 23:01

All times are UTC

Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 14 Nov 2017, 23:17 

Joined: 09 Oct 2014, 01:29
Posts: 43
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.

PostPosted: 15 Nov 2017, 05:45 
*blah-blah-blah maniac*

Joined: 05 Apr 2014, 10:29
Posts: 501
Location: Taiwan
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// 24G RAM

PostPosted: 15 Nov 2017, 08:58 
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 11770
Location: Voronezh
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.

AMD A6-3420M 1.5 GHz, 8 Gb ram, Radeon HD6520G 2 Gb, Win7
I am INFP, not the brutal, godamnit.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group