hlsl
HLSL: Index to unaligned/packed floats
I have a vertex shader (2.0) doing some instancing - each vertex specifies an index into an array. If I have an array like this:[详细]
2022-12-30 16:57 分类:问答HLSL: Enforce Constant Register Limit at Compile Time
In HLSL, is there any way to limit the number of constant registers that the compiler uses? Specifically, if I have something like:[详细]
2022-12-30 15:05 分类:问答HLSL How can one pass data between shaders / read existing colour value?
I have 2 HLSL ps2.0 shaders. Simplified, they are: Shader 1 Reads texture Outputs c开发者_JAVA技巧olour value based on this texture[详细]
2022-12-29 17:34 分类:问答Issues with HLSL and lighting
I am trying figure out whats going on with my HLSL code but I have no way of debugging it cause C++ gives off no errors. The application just closes when I run it. I am trying to add lighting to a 3d[详细]
2022-12-29 10:27 分类:问答Loading just a part of a texture in DirectX?
If I have a texture file how would I be able to load up only a par开发者_StackOverflowt of it using a defined rect (top, left, bottom, right)?[详细]
2022-12-29 00:46 分类:问答Problem with compiling any HLSL effect
My code is: FileStream fs = new FileStream(\"ImageProcessing.fx\", FileMode.Open,FileAccess.Read); CompiledEffect compiledEffect = Effect.CompileEffectFromFile(fs, null, null, CompilerOptions.None, T[详细]
2022-12-28 14:23 分类:问答Is there any kind of HLSL or HYDRA Pixel Shader languages for JAVA?
Is there any kind of HLSL or HYDRA Pixel Shader languages vorking in toch with for JAVA? So I have an image. I want to use some Pixel Shader lan开发者_如何学编程guage to modify it as I do in Flash wit[详细]
2022-12-27 19:11 分类:问答HLSL - How can I set sampler Min/Mag/Mip filters to disable all filtering/anti-aliasing?
I have a tex2D sampler I want to only return precisely those colours that are present on my texture. I am using Shader Model 3, so cannot use load.[详细]
2022-12-27 18:52 分类:问答HLSL tex2d sampler seemingly using inconsistent rounding; why?
I have code that needs to render regions of my object differently depending on their location. I am trying to use a colour map to define these regions.[详细]
2022-12-27 16:57 分类:问答Offloading to HLSL/GPU without displaying?
As far as I know, certain mathematical functions like FFTs and perlin noise, etc. can be much 开发者_Python百科faster when done on the GPU as a pixel shader. My question is, if I wanted to exploit thi[详细]
2022-12-27 03:10 分类:问答