Add GetShaderLocationAttrib function
- Used by the example shaders_rlgl_mesh_instanced.
This commit is contained in:
parent
5d266806eb
commit
1e362c5e64
1 changed files with 4 additions and 0 deletions
|
|
@ -2564,6 +2564,10 @@ namespace Raylib_cs
|
|||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int GetShaderLocation(Shader shader, string uniformName);
|
||||
|
||||
// Get shader attribute location
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int GetShaderLocationAttrib(Shader shader, string attribName);
|
||||
|
||||
// Set shader uniform value
|
||||
// value refers to a const void *
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue