Skip to content

Conversation

@hzqst
Copy link
Contributor

@hzqst hzqst commented Jan 2, 2026

No description provided.

TheMostDiligent and others added 25 commits December 23, 2025 07:03
- Improve const-correctness
- Use unordered_set for seen
- Use references instead of non-null pointers
…e reordered (DiligentGraphics#743)

The pointer type instruction needs to be reordered, or the SPIRV might be rejected by Vulkan validation layer due to violating SPIR-V rules.
…g opcodes

Log a warning and stop propagating on this path
It may become stale after analyses invalidation
@hzqst hzqst marked this pull request as ready for review January 2, 2026 04:23
@hzqst hzqst requested a review from TheMostDiligent as a code owner January 2, 2026 04:23
@hzqst hzqst closed this Jan 2, 2026
}

void PipelineLayoutVk::Create(RenderDeviceVkImpl* pDeviceVk, RefCntAutoPtr<PipelineResourceSignatureVkImpl> ppSignatures[], Uint32 SignatureCount) noexcept(false)
void PipelineLayoutVk::Create(RenderDeviceVkImpl* pDeviceVk,

Check notice

Code scanning / CodeQL

No raw arrays in interfaces Note

Raw arrays should not be used in interfaces. A container class should be used instead.
ResCI.Name = pShader->GetDesc().Name;
ResCI.CombinedSamplerSuffix = pShader->GetDesc().UseCombinedTextureSamplers ? pShader->GetDesc().CombinedSamplerSuffix : nullptr;
ResCI.LoadShaderStageInputs = pShader->GetDesc().ShaderType == SHADER_TYPE_VERTEX;
ResCI.LoadUniformBufferReflection = true; //LoadConstantBufferReflection;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
if (ResDesc.Flags & PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS)
{
if (!DstResourceCache.CopyResource<D3D11_RESOURCE_RANGE_CBV>(SrcResourceCache, ResAttr.BindPoints + ArrInd))
VERIFY(ResDesc.Flags == PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS, "INLINE_CONSTANTS flag is not compatible with other flags");

Check warning

Code scanning / PREfast

Use 'bitwise and' to check if a flag is set. Warning

Use 'bitwise and' to check if a flag is set.
Uint32 ArraySize = Attribs.BindCount;
if (ResFlags & PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS)
{
VERIFY(ResFlags == PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS, "INLINE_CONSTANTS flag cannot be combined with other flags.");

Check warning

Code scanning / PREfast

Use 'bitwise and' to check if a flag is set. Warning

Use 'bitwise and' to check if a flag is set.
Uint32 ArraySize = Attribs.BindCount;
if (ResFlags & PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS)
{
VERIFY(ResFlags == PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS, "INLINE_CONSTANTS flag cannot be combined with other flags.");

Check warning

Code scanning / PREfast

Use 'bitwise and' to check if a flag is set. Warning

Use 'bitwise and' to check if a flag is set.
Uint32 ArraySize = Attribs.ArraySize;
if (Flags & PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS)
{
VERIFY(Flags == PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS, "INLINE_CONSTANTS flag cannot be combined with other flags.");

Check warning

Code scanning / PREfast

Use 'bitwise and' to check if a flag is set. Warning

Use 'bitwise and' to check if a flag is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants