Skip to content

Use SRet for struct return type. - #243

Merged
Xiang Li (python3kgae) merged 3 commits into
microsoft:masterfrom
python3kgae:sret6
Apr 24, 2017
Merged

Xiang Li (python3kgae) merged 3 commits into
microsoft:masterfrom
python3kgae:sret6

Conversation

@python3kgae

Copy link
Copy Markdown
Contributor

No description provided.

@msftclas

Xiang Li (@python3kgae),
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@AppVeyorBot

Copy link
Copy Markdown

Comment thread lib/HLSL/DxilShaderModel.cpp Outdated
return Get(Kind, Major, Minor);
}

void ShaderModel::SetDxilVersion(unsigned &DxilMajor, unsigned &DxilMinor) const {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetDxilVersion

Comment thread lib/HLSL/DxilShaderModel.cpp Outdated
}

void ShaderModel::SetDxilVersion(unsigned &DxilMajor, unsigned &DxilMinor) const {
if (m_Major == 6) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to DXASSERT, as we should not get < 6.0 here. And use switch or something to only support numbers that we support now.

@AppVeyorBot

Copy link
Copy Markdown

@python3kgae
Xiang Li (python3kgae) merged commit bc4a68b into microsoft:master Apr 24, 2017
@python3kgae
Xiang Li (python3kgae) deleted the sret6 branch April 24, 2017 21:35
Gregory Roth (pow2clk) added a commit to pow2clk/DirectXShaderCompiler that referenced this pull request Jun 15, 2018
A persistent and occasionally confusing warning is produced on
Windows release builds because of a conditional expression that only
contains an assert. On a release build, this amounts to nothing but
a semicolon, which produces the warning.

This folds the conditional into the previously explicit assert so
it is included or excluded entirely regardless of build type.
Ehsan (ehsannas) pushed a commit to ehsannas/DirectXShaderCompiler that referenced this pull request Jun 18, 2018
A persistent and occasionally confusing warning is produced on
Windows release builds because of a conditional expression that only
contains an assert. On a release build, this amounts to nothing but
a semicolon, which produces the warning.

This folds the conditional into the previously explicit assert so
it is included or excluded entirely regardless of build type.
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.

4 participants