Struct ComputeKernel | Barracuda | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ComputeKernel

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Barracuda
    Syntax
    public struct ComputeKernel

    Constructors

    ComputeKernel(ComputeFunc, (Int32, Int32, Int32))

    Declaration
    public ComputeKernel(ComputeFunc func_, (int, int, int)dispatch_)
    Parameters
    Type Name Description
    ComputeFunc func_
    ValueTuple<Int32, Int32, Int32> dispatch_

    Fields

    dispatch

    Declaration
    public readonly (int, int, int)dispatch
    Field Value
    Type Description
    ValueTuple<Int32, Int32, Int32>

    func

    Declaration
    public readonly ComputeFunc func
    Field Value
    Type Description
    ComputeFunc

    Properties

    shader

    Declaration
    public ComputeShader shader { get; }
    Property Value
    Type Description
    ComputeShader

    Methods

    Dispatch()

    Declaration
    public void Dispatch()

    SetTensor(String, TensorShape, ComputeBuffer, Int64)

    Declaration
    public void SetTensor(string name, TensorShape shape, ComputeBuffer buffer, long dataOffset = 0L)
    Parameters
    Type Name Description
    String name
    TensorShape shape
    ComputeBuffer buffer
    Int64 dataOffset

    SetTensor(ComputeFunc.TensorDecl, Int32, TensorShape, ComputeBuffer, Int64)

    Declaration
    public void SetTensor(ComputeFunc.TensorDecl tensorDecl, int dataPropId, TensorShape shape, ComputeBuffer buffer, long dataOffset = 0L)
    Parameters
    Type Name Description
    ComputeFunc.TensorDecl tensorDecl
    Int32 dataPropId
    TensorShape shape
    ComputeBuffer buffer
    Int64 dataOffset

    SetTensorBuffer(Int32, ComputeBuffer)

    Declaration
    public void SetTensorBuffer(int propId, ComputeBuffer buffer)
    Parameters
    Type Name Description
    Int32 propId
    ComputeBuffer buffer

    SetTensorBuffer(String, ComputeBuffer)

    Declaration
    public void SetTensorBuffer(string name, ComputeBuffer buffer)
    Parameters
    Type Name Description
    String name
    ComputeBuffer buffer

    SetTensorDecl(String, TensorShape, Int64)

    Declaration
    public void SetTensorDecl(string name, TensorShape shape, long dataOffset)
    Parameters
    Type Name Description
    String name
    TensorShape shape
    Int64 dataOffset

    SetTensorDecl(ComputeFunc.TensorDecl, TensorShape, Int64)

    Declaration
    public void SetTensorDecl(ComputeFunc.TensorDecl tensorDecl, TensorShape shape, long dataOffset)
    Parameters
    Type Name Description
    ComputeFunc.TensorDecl tensorDecl
    TensorShape shape
    Int64 dataOffset
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023