public StateAssignment CreateSamplerStateAssignment(State state) { var ptr = NativeMethods.cgCreateSamplerStateAssignment(this.Handle, state.Handle); return ptr == IntPtr.Zero ? null : new StateAssignment(ptr, true); }
public StateAssignment CreateStateAssignmentIndex(State state, int index) { var ptr = NativeMethods.cgCreateStateAssignmentIndex(this.Handle, state.Handle, index); return ptr == IntPtr.Zero ? null : new StateAssignment(ptr, true); }
public static extern void cgSetStateCallbacks(IntPtr state, State.CallbackDelegate set, State.CallbackDelegate reset, State.CallbackDelegate validate);