Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AcquirePipelineState null checks should check initialization state (ASV) #619

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

amzn-tommy
Copy link
Contributor

What does this PR do?

Calls to Shader::AcquirePipelineState should check if IsInitialized == true, not just check for null, because if the pipeline state fails to compile it will return a non-null value that is uninitialized.

How was this PR tested?

Ran ASV tests and the editor.

…lled and the result was checked for nullptr. If the PipelineState fails to compile, it will still return a non-null result, so we need to check the initialized state if we want to handle a failure to compile.

Signed-off-by: Tommy Walton <[email protected]>
@amzn-tommy amzn-tommy requested review from moudgils, VickyAtAZ and a team April 12, 2023 17:09
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