
org.robovm.apple.metalps.MPSNNBinaryArithmeticNode Maven / Gradle / Ivy
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.robovm.apple.metalps;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.annotation.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.coregraphics.*;
import org.robovm.apple.metal.*;
/* */
/**/
/**
* @since Available in iOS 11.0 and later.
*/
/* */
/**/@Library("Metal") @NativeClass/* */
/**/public/* */ class /**/MPSNNBinaryArithmeticNode/* */
extends /**/MPSNNFilterNode/* */
/**//* */ {
/**/public static class MPSNNBinaryArithmeticNodePtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(MPSNNBinaryArithmeticNode.class); }/* */
/**//* */
/**/
public MPSNNBinaryArithmeticNode() {}
protected MPSNNBinaryArithmeticNode(Handle h, long handle) { super(h, handle); }
protected MPSNNBinaryArithmeticNode(SkipInit skipInit) { super(skipInit); }
@Method(selector = "initWithSources:")
public MPSNNBinaryArithmeticNode(NSArray sourceNodes) { super((SkipInit) null); initObject(initWithSources(sourceNodes)); }
@Method(selector = "initWithLeftSource:rightSource:")
public MPSNNBinaryArithmeticNode(MPSNNImageNode left, MPSNNImageNode right) { super((SkipInit) null); initObject(init(left, right)); }
/* */
/**/
@Property(selector = "primaryScale")
public native float getPrimaryScale();
@Property(selector = "setPrimaryScale:")
public native void setPrimaryScale(float v);
@Property(selector = "secondaryScale")
public native float getSecondaryScale();
@Property(selector = "setSecondaryScale:")
public native void setSecondaryScale(float v);
@Property(selector = "bias")
public native float getBias();
@Property(selector = "setBias:")
public native void setBias(float v);
@Property(selector = "primaryStrideInPixelsX")
public native @MachineSizedUInt long getPrimaryStrideInPixelsX();
@Property(selector = "setPrimaryStrideInPixelsX:")
public native void setPrimaryStrideInPixelsX(@MachineSizedUInt long v);
@Property(selector = "primaryStrideInPixelsY")
public native @MachineSizedUInt long getPrimaryStrideInPixelsY();
@Property(selector = "setPrimaryStrideInPixelsY:")
public native void setPrimaryStrideInPixelsY(@MachineSizedUInt long v);
@Property(selector = "primaryStrideInFeatureChannels")
public native @MachineSizedUInt long getPrimaryStrideInFeatureChannels();
@Property(selector = "setPrimaryStrideInFeatureChannels:")
public native void setPrimaryStrideInFeatureChannels(@MachineSizedUInt long v);
@Property(selector = "secondaryStrideInPixelsX")
public native @MachineSizedUInt long getSecondaryStrideInPixelsX();
@Property(selector = "setSecondaryStrideInPixelsX:")
public native void setSecondaryStrideInPixelsX(@MachineSizedUInt long v);
@Property(selector = "secondaryStrideInPixelsY")
public native @MachineSizedUInt long getSecondaryStrideInPixelsY();
@Property(selector = "setSecondaryStrideInPixelsY:")
public native void setSecondaryStrideInPixelsY(@MachineSizedUInt long v);
@Property(selector = "secondaryStrideInFeatureChannels")
public native @MachineSizedUInt long getSecondaryStrideInFeatureChannels();
@Property(selector = "setSecondaryStrideInFeatureChannels:")
public native void setSecondaryStrideInFeatureChannels(@MachineSizedUInt long v);
@Property(selector = "minimumValue")
public native float getMinimumValue();
@Property(selector = "setMinimumValue:")
public native void setMinimumValue(float v);
@Property(selector = "maximumValue")
public native float getMaximumValue();
@Property(selector = "setMaximumValue:")
public native void setMaximumValue(float v);
/* */
/**//* */
/**/
@Method(selector = "initWithSources:")
protected native @Pointer long initWithSources(NSArray sourceNodes);
@Method(selector = "initWithLeftSource:rightSource:")
protected native @Pointer long init(MPSNNImageNode left, MPSNNImageNode right);
@Method(selector = "gradientClass")
public native Class> gradientClass();
/**
* @since Available in iOS 11.3 and later.
*/
@Method(selector = "gradientFiltersWithSources:")
public native NSArray gradientFiltersWithSources(NSArray gradientImages);
@Method(selector = "nodeWithSources:")
public static native MPSNNBinaryArithmeticNode nodeWithSources(NSArray sourceNodes);
/* */
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy