formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Render Materials

# fz_shdr_ptr_get_info

Description

Retrieves useful information about a shader. The information is returned as bits in the flags parameter. The bits are defined in the fz_shdr_info_flags_enum. For example, to check whether a shader is a wrapped shader this function can be called like this :
fz_shdr_ptr_get_info(windex,shdr_ptr,&flags);
is_wrapped = FZ_CHKBIT(flags, FZ_SHDR_INFO_IS_WRAPPED);

Plugin Prototype

fzrt_error_td fz_shdr_ptr_get_info(

fzrt_int | windex,
fz_shdr_ptr | shdr_ptr,
fzrt_int * | flags )

Parameters

windex [Input]

project window index

shdr_ptr [Input]

the shader for which to get the information

flags [Result]

the flags that contain the bit encoded information. See fz_shdr_info_flags_enum for the definition of the bits.

Returns

Error codes

Availability

5.5.0.0

Example Files

util_rmtl.fsl

Function Set

fz_rmtl_fset

Defined in

fz_rmtl_api.h