All Questions
777 questions
0 votes
1 answer
78 views
Does it make sense to use a compute shader with Dispatch(1,1,1) and Numthreads[1,1,1] to draw a cone?
I was working on this idea of drawing a cone rotating on the y axis with a parametric equation, using a compute shader with a function like: ...
0 votes
1 answer
68 views
Difficulties for GPU rendering of a cone using parametric equation
I'm trying to render a cone at the gpu for some effects. I'm using the parametric equation provided here. I ended up with the shader below intended to work with an unorderedaccessview target (DX11). I'...
0 votes
1 answer
68 views
How to create array of Depthstencil2D from texture2Darray
I have already done someting like this for texturecube but here I don't understand what I'm doing wrong. I have the first chance exception error message. Below how I proceed: create a texture for ...
0 votes
1 answer
43 views
Difficulties with matrices settings for cascaded shadows
I have added cascaded shadows to my pipeline. The whole process seems to works fine as shown in the picture. But I should obtain a progressive “zoom” from the first cascade (red) to the last (blue) ...
0 votes
1 answer
86 views
Advice on how to best use if possible 4 GatherCmpRed to emulate a 4x4 PCF sampling for shadowmap blur
In a part of my level I have shadows close to the camera where a good blur is important. Currently I have implemented a 4x4 PCF, thus requiring 16 texture samplings. I'm trying to see if the ...
0 votes
1 answer
169 views
Is memcpy safe to use to fill an ID3DBlob with a pre-compiled shader?
Following my post Saving shaders to file I then tried to load shader object files to recreate my shaders. I found some Q&A about how to load precompiled HLSL shaders into memory, including a short ...
0 votes
0 answers
70 views
Back buffer texture appears distorted before presenting
I am trying to send video data from Dolphin Emulator to another process. To do so, I first get a reference to the back buffer from the swap chain. ...
1 vote
0 answers
47 views
CGLM Not Rendering with Sokol [closed]
I've setup cglm from a wrap configured with Meson, and have copied one of the samples from https://github.com/floooh/sokol-samples/tree/master (cube-sapp, to be exact). I've tried to replace sokol's ...