Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc refs to PtexCache that should be PtexTexture #12

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions ptex-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,37 +357,37 @@ pub mod ffi {
#[namespace = "Ptex::sys"]
unsafe fn ptextexture_get_num_faces(cache: *const PtexTexture) -> i32;

/// Get the path for the specified PtexCache.
/// Get the path for the specified PtexTexture.
/// # Safety
/// This function must be called with a valid PtexTexture pointer.
#[namespace = "Ptex::sys"]
unsafe fn ptextexture_get_path(cache: *const PtexTexture) -> String;

/// Get the MeshType for the specified PtexCache.
/// Get the MeshType for the specified PtexTexture.
/// # Safety
/// This function must be called with a valid PtexTexture pointer.
#[namespace = "Ptex::sys"]
unsafe fn ptextexture_get_meshtype(cache: *const PtexTexture) -> MeshType;

/// Get the DataType for the specified PtexCache.
/// Get the DataType for the specified PtexTexture.
/// # Safety
/// This function must be called with a valid PtexTexture pointer.
#[namespace = "Ptex::sys"]
unsafe fn ptextexture_get_datatype(cache: *const PtexTexture) -> DataType;

/// Get the BorderMode for the specified PtexCache and direction.
/// Get the BorderMode for the specified PtexTexture and direction.
/// # Safety
/// This function must be called with a valid PtexTexture pointer.
#[namespace = "Ptex::sys"]
unsafe fn ptextexture_get_border_mode_u(cache: *const PtexTexture) -> BorderMode;

/// Get the BorderMode for the specified PtexCache and direction.
/// Get the BorderMode for the specified PtexTexture and direction.
/// # Safety
/// This function must be called with a valid PtexTexture pointer.
#[namespace = "Ptex::sys"]
unsafe fn ptextexture_get_border_mode_v(cache: *const PtexTexture) -> BorderMode;

/// Get the EdgeFilterMode for the specified PtexCache.
/// Get the EdgeFilterMode for the specified PtexTexture.
/// # Safety
/// This function must be called with a valid PtexTexture pointer.
#[namespace = "Ptex::sys"]
Expand All @@ -402,7 +402,7 @@ pub mod ffi {
faceid: i32,
) -> &'a FaceInfo;

/// Get the pixel value for the specified PtexCache.
/// Get the pixel value for the specified PtexTexture.
/// # Safety
/// This function must be called with a valid PtexTexture pointer.
#[namespace = "Ptex::sys"]
Expand Down