Skip to content

Commit

Permalink
Fix doc refs to PtexCache that should be PtexTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmice committed Apr 11, 2024
1 parent d1845de commit df752a8
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit df752a8

Please sign in to comment.