Skip to content

Commit

Permalink
Falcor 3.2.2 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyaoNV authored May 18, 2019
1 parent 7c1c329 commit f2b53b1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
v3.2.2
------
Bug Fixes:
- Fixed referencing a temporary variable in Vulkan MSAA state creation that causes it to not work on some systems
- Fixed unreachable code when reflecting sample shading configuration
- Fixed comment in Material.h incorrectly describing material channel layout

Dependencies:
- Updates Slang to 0.12.5

v3.2.1
------
- `Ctrl+Pause` freezes/unfreezes the renderer. This if useful in low framerates situations when the user wants to change an attribute using the GUI
Expand Down
5 changes: 3 additions & 2 deletions Framework/Source/API/Vulkan/VKGraphicsStateObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ namespace Falcor
// Multisample State
VkPipelineMultisampleStateCreateInfo multisampleInfo = {};
bool enableSampleFrequency = mDesc.getProgramVersion() ? mDesc.getProgramVersion()->getReflector()->isSampleFrequency() : false;
initVkMultiSampleInfo(mDesc.getBlendState().get(), mDesc.getFboDesc(), mDesc.getSampleMask(), multisampleInfo, enableSampleFrequency);
uint32_t sampleMask = mDesc.getSampleMask(); // getSampleMask returns a temp value but needs to be referenced in VkPipelineMultisampleStateCreateInfo by address
initVkMultiSampleInfo(mDesc.getBlendState().get(), mDesc.getFboDesc(), sampleMask, multisampleInfo, enableSampleFrequency);

// Depth Stencil State
VkPipelineDepthStencilStateCreateInfo depthStencilInfo = {};
Expand Down Expand Up @@ -106,4 +107,4 @@ namespace Falcor

return true;
}
}
}
4 changes: 2 additions & 2 deletions Framework/Source/Graphics/Material/Material.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ namespace Falcor
- A - Transparency
Specular
- R - Occlusion
- G - Metalness
- B - Roughness
- G - Roughness
- B - Metalness
- A - Reserved
ShadingModelSpecGloss
Expand Down
6 changes: 1 addition & 5 deletions Framework/Source/Graphics/Program/ProgramReflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,15 +789,11 @@ namespace Falcor
break;
case SLANG_STAGE_FRAGMENT:
reflectShaderIO(pEntryPoint, SLANG_PARAMETER_CATEGORY_FRAGMENT_OUTPUT, mPsOut);
mIsSampleFrequency = pEntryPoint->usesAnySampleRateInput();
break;
case SLANG_STAGE_VERTEX:
reflectShaderIO(pEntryPoint, SLANG_PARAMETER_CATEGORY_VERTEX_INPUT, mVertAttr, &mVertAttrBySemantic);
break;
#ifdef FALCOR_VK
mIsSampleFrequency = pEntryPoint->usesAnySampleRateInput();
#else
mIsSampleFrequency = true; // #SLANG Slang reports false for DX shaders. There's an open issue, once it's fixed we should remove that
#endif
default:
break;
}
Expand Down
4 changes: 2 additions & 2 deletions dependencies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<package name="rapidjson" version="1.1.0" />
</dependency>
<dependency name="slang" linkPath="Framework/Externals/Slang">
<package name="slang" version="0.11.21" remotes="github-slang" />
<package name="slang" version="0.11.21" remotes="github-slang-linux" platforms="linux" />
<package name="slang" version="0.12.5" remotes="github-slang" />
<package name="slang" version="0.12.5" remotes="github-slang-linux" platforms="linux" />
</dependency>
<dependency name="glfw" linkPath="Framework/Externals/GLFW">
<package name="glfw" version="3.2.1" platforms="win" />
Expand Down

0 comments on commit f2b53b1

Please sign in to comment.