Can you get the row and column of the current fragment in an HLSL (DX11) fragment shader?
Row and column index of fragment, HLSL shader
288 Views Asked by bobobobo At
1
There are 1 best solutions below
Related Questions in PIXEL-SHADER
- Is the render target view the only way to output data from pixel shader in DirectX?
- D3D Texture convert Format
- Why does this HLSL pixel shader not compile?
- Variable Width Outline Effect Around a Texture in 2D
- Use of "ScreenTC" and "TC_Window" in fragment shaders
- Red colored point light not projecting correctly [D3D11]
- problem with Creating textures in DirectX 12
- Discarding pixels in ps_2_0?
- Textures do not get accessed properly in pixel shader (DirectX11)
- Normal map overrides smooth edges in DirectX 11
- Converting pixelshader asm to HLSL
- Mix asm vertex shader with HLSL pixel shader in effect
- How to correct this HLSL pixel shader to round corners of a quad?
- How do pixel values behave in DirectX 11 HLSL shaders?
- Having trouble converting a d3d9 pixelshader to d3d11
Related Questions in DIRECT3D11
- Attempt to convert pData provided by Direct3d11 to buffer, but error when resize window
- DirectX 3d 11 after using the Depth Stencil view in OMSetRenderTarget nothing is rendering at alllll
- Is the SlicePitch value wrong?
- Create DXGIFactory
- How to convert a cudaArray to a Torch tensor?
- When updating a buffer bound to a Direct3D swapchain using CopyResource(), does the corresponding main render target view need to be set?
- How to replicate the CAPTUREBLT behavior with Windows Graphics Capture API CreateForWindow(hWnd)
- Why could `RowPitch` be impossibly large after a `Map` call?
- How to correctly copy `Texture2D` to another adapter?
- RESOURCE_MANIPULATION ERROR #281 when calling ID3D11DeviceContext::CopySubresourceRegion to render video from a webcam
- How do I tell when Direct2D work has finished on the gpu
- Shared DirectX texture2D between UWP and win32 app
- Do D3D11/D2D1 Device&DeviceContexts need to be reloaded on D2DERR_RECREATE_TARGET?
- DuplicateOutput is falling with E_INVALIDARGS
- What is a good way to batch render multiple quads with different textures in Direct3D 11?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can pass the size of the texture as a uniform and use texture coordinates to find out where the fragment lies in pixel space.
May I ask why?