Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
HLSL is the High-Level Shading Language, used to author shaders for use with Direct3D, and cross-compilable to SPIR-V. Use this tag for questions which are specifically about shaders written in this language. For generic shader questions use [shader] instead.
2
votes
1
answer
344
views
R16_FLOAT, SampleCmp and CheckFormatSupport
I want to use PCF shadow map on my d3d11 app. My shadow map is an R16_FLOAT texture. When I use SampleCmpLevelZero it didn't give a correct result. After enabling debug layer, it shows:
The Shader …
1
vote
Accepted
R16_FLOAT, SampleCmp and CheckFormatSupport
Because I was using the CheckFormatSupport wrong. The second parameter is supposed to be an input.
Here is what it should be like.
bool Renderer::InitRenderer(HWND hwnd)
{
if (!InitD3D11App(hwnd …