Home -> IShaderProgram -> GetSamplerId
Description
The GetSamplerId method retrieves the ID of the specified separate texture sampler, or SamplerId::Null if the sampler could not be found.
Usage
SamplerId GetSamplerId(const Marshal::In<std::string>& name) const;
Argument list
- name [const Marshal::In<std::string>]
- The shader-visible resource or input name to look up.
Return value
- [SamplerId]
- The ID of the named sampler, or SamplerId::Null if no matching sampler exists.