Skip to main content

cuTexRefSetBorderColor

Function cuTexRefSetBorderColor 

Source
pub unsafe extern "C" fn cuTexRefSetBorderColor(
    hTexRef: CUtexref,
    pBorderColor: *mut f32,
) -> CUresult
👎Deprecated
Expand description

Sets the border color for a texture reference.

Specifies the value of the RGBA color via the pBorderColor to the texture reference hTexRef. The color value supports only float type and holds color components in the following sequence: pBorderColor[0] holds ‘R’ component pBorderColor[1] holds ‘G’ component pBorderColor[2] holds ‘B’ component pBorderColor[3] holds ‘A’ component

Note that the color values can be set only when the Address mode is set to CUaddress_mode::CU_TR_ADDRESS_MODE_BORDER using cuTexRefSetAddressMode. Applications using integer border color values have to “reinterpret_cast” their values to float.

§Parameters

  • hTexRef: Texture reference.
  • pBorderColor: RGBA color.