Top "Hlsl" questions

HLSL(High Level Shader Language) is a proprietary shading language developed by Microsoft for use with the Microsoft Direct3D API

Do conditional statements slow down shaders?

I want to know if "if-statements" inside shaders (vertex / fragment / pixel...) are really slowing down the shader performance. For example: …

opengl glsl shader direct3d hlsl
When does the transition from clip space to screen coordinates happen?

I was studying the rendering pipeline and when I got to the clipping stage it was explained that from the …

opengl graphics rendering hlsl
Can I generate a random number inside a pixel shader?

I'm trying to write a very simple shader that adds random sparkle to applicable objects. The way I'd like to …

random hlsl directx-9 pixel-shader
FXC : error X3501: 'main': entrypoint not found

I am following an example book called: Introduction to 3D Game Programming with DirectX 11 It is all written in VS2010. …

c++ directx shader visual-studio-2013 hlsl
Normalizing from [0.5 - 1] to [0 - 1]

I'm kind of stuck here, I guess it's a bit of a brain teaser. If I have numbers in the …

c++ math hlsl normalize
Glsl mod vs Hlsl fmod

I've implemented the spiral GLSL shader described in this question in HLSL, but the results are not the same. I …

math opengl directx glsl hlsl
Passing colors through a pixel shader in HLSL

I have have a pixel shader that should simply pass the input color through, but instead I am getting a …

direct3d hlsl pixel-shader
How to play HLS Wowza Live Stream (m3u8) on videojs

I am trying to play h264 encoded live stream using html5 video tag. Live stream is broadcasted by wowza media …

html5-video hlsl wowza
HLSL mul() variables clarification

The parameters for HLSL's mul( x, y) indicated here: say that if x is a vector, it is treated as …

c++ directx hlsl
VS2010 - HLSL Intellisense?

Are there any free components out there that will give highlighting and/or intellisense for HLSL? I've seen mentions of …

visual-studio-2010 intellisense hlsl