Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

[Direct3D12] CreateGraphicsPipelineState throws NullReferenceException #647

@weltkante

Description

@weltkante

CreateGraphicsPipelineState throws a NullReferenceException for me. I can't guarantee that its not my mistake, but all the arguments seem set, except that I have left some shaders empty (I only need pixel and vertex shader for now). In C++ it worked leaving other shaders at null.

Could that be the cause for a NullReferenceException? In the source I can see it is doing fixed-statements on all shaders without checking if the shaders are null. Would that throw an exception?

[edit] with some trial and error I figured out that it was the StreamOutputDescription not being set, even though I don't use it. Maybe make it a struct or add a null check? Feel free to close the issue if throwing a NullReferenceException instead of doing a null check is the intended behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions