pixel-shader
Number of Geometry Shader Executions?
So a vertex shader is executed for each vertex and a fragment shader for each fragment (right?). How many times is a geometry shad开发者_如何学运维er executed?It\'s executed once for each primitive ([详细]
2023-03-02 21:12 分类:问答Help to understand Pixelate effect
I\'m new a HLSL and I\'m trying to understand a pixelate sample. However, I haven\'t been able to find a reference about how a couple of operations are. Here is the shader example:[详细]
2023-03-01 08:20 分类:问答Can't access a DXGI_FORMAT_R8_UINT texture
I want to do some calculations on a 8bit image sent by a camera, and I just can\'t figure out the way to access them.[详细]
2023-02-23 05:00 分类:问答HLSL: problematic pixelshader code (alpha at zero when sampling)?
I have this strange problem with the sampler in the pixel shaders. When I sample from a sampler into an empty float4 variable I always get black/transparent color back. So if I use this I get a black[详细]
2023-02-21 22:27 分类:问答My "perlin" noise effect shader produces either all-white or all-black
I\'m trying to code a \"perlin\" noise shader in NVidia FX Composer. However, no matter how I tweak the noise function, it returns either 100% white or 100% black. I have no clue how to solve this or[详细]
2023-02-16 09:13 分类:问答Speed of ComputeShader vs. PixelShader
I\'ve got a question regarding ComputeShader compared to PixelShader. I want to do some processing on a buffer, and this is possible both with a pixel shader and a compute shader, and now I wonder if[详细]
2023-02-15 00:32 分类:问答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 do this is by adding a random shade of white (R = G = B) to the pixel value within the pi[详细]
2023-02-14 04:46 分类:问答Turn off color ranges in Pixel Bender
What is the best way to turn turn off (using PixelBender) colors that fall within a certain range. For example, turn off all colors between 0x00开发者_Python百科00FF and 0x00FFFF. Thanks for your help[详细]
2023-02-13 14:55 分类:问答Use shaders to compare images
Do you know how can I write simple shader (hlsl) to compare two images ? I want to get on result percent of similarity ? Is it posible to use shaders in this case ? Can I for example count red pixels[详细]
2023-02-13 10:59 分类:问答Show / Hide specific color ranges with PixelBender
What is the best way to hide specific (interpolated) color ranges? For example, I have a gradient that goes from blue > cya开发者_C百科n > yellow > red. What I need is to hide blue > cyan, yellow > re[详细]
2023-02-05 16:11 分类:问答