Skip to content

Conversation

hekota
Copy link
Member

@hekota hekota commented Aug 28, 2025

Adds static methods __createFromBinding and __createFromImplicitBinding to resource classes. These methods will be used for resource initialization instead of the resource constructors that take binding information.

Also adds a private resource constructor that takes an initialized resource handle which is used by the static create methods.

@hekota hekota changed the title [HLSL] Add static methods for resource initialization and resource constructor from handle [HLSL] Add static methods for resource initialization and constructor from handle Aug 28, 2025
Copy link

github-actions bot commented Aug 28, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

…or from handle

Adds static methods `__createFromBinding` and `__createFromImplicitBinding`
to resource classes. These methods will be used for resource initialization
instead of the resource constructors that take binding information.

Also adds a private resource constructor that takes an initialized resource handle.
This constructor will be called from the static create methods.
@hekota hekota force-pushed the res-create-1-add-methods branch from e5cfb97 to dcbbda4 Compare August 28, 2025 16:08
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.

1 participant