You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 16940d7
Browse filesBrowse the repository at this point in the historyBrowse files
Apply the review findings from the texture API-style follow-up:
- Rename TextureObject.texture_descriptor -> options (and the internal
_texture_desc slot -> _options) to drop the borrowed "descriptor"
naming, matching the TextureObjectOptions rename.
- Make options a required argument on create_opaque_array /
create_mipmapped_array (shape/format/num_channels have no defaults),
so omitting it raises a clear error instead of a raw dataclass
TypeError. create_texture_object keeps options=None (all-default
sampling state).
- Add return and resource/options type annotations to the four
Device.create_* texture factories via a TYPE_CHECKING texture import
(mirroring the existing GraphBuilder pattern).
- Clarify in the create_* docstrings that the resource is created in the
current CUDA context (call set_current first), mirroring
create_stream / create_event.
- Add versionadded:: 1.1.0 to OpaqueArrayOptions, MipmappedArrayOptions,
TextureObjectOptions, and the new options property.
- Fix a stale negative-path test whose regex no longer matched the
shared check_or_create_options message; rename stale from_descriptor
test names to create_*; realign the gl_interop_fluid API-MAP comment
table after the enum renames.
- Regenerate .pyi stubs.
0 commit comments