Skip to content

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 a team, VickyAtAZ and moudgils 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