Skip to content

My thoughts about hassle_rs::compile_hlsl #48

@BeastLe9enD

Description

@BeastLe9enD

I just looked into hassle_rs::compile_hlsl and I saw that the compiler is recreated every time the function is called. I though about using a thread local to store the DxcLibrary and DxcCompiler and just take the compiler for the current thread (as Dxc is not thread safe). Just had the idea and wanted to ask what your thoughts are on it.

This is more of a discussion than an issue, but I'm posting it here because I can't create a discussion :)

If you agree with me on the idea, I can of course make a pull request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions