https://github.com/shader-slang/slang
Raw File
Tip revision: 45ae0eb9ada14b8ead3c9785e16cc234a4d31ef0 authored by Yong He on 01 November 2021, 17:53:42 UTC
Disable aarch64 build for releases. (#2000)
Tip revision: 45ae0eb
slang-ir-specialize-arrays.h
// slang-ir-specialize-arrays.h
#pragma once

namespace Slang
{
    class BackEndCompileRequest;
    class TargetRequest;
    struct IRModule;

    /// Specialize calls to functions that take parameters of
    /// `struct` type with array fields.
    ///
    /// For any function that has such input parameters, this pass
    /// will rewrite any call sites that pass suitable arguments
    /// (e.g., direct references to global shader parameters) to
    /// instead call a specialized variant of the function that does
    /// not have those array parameters, if the array can be referenced
    /// from global shader parameters directly.
    /// This is an optimization for GL/VK backend since the downstream
    /// compiler doesn't seem to optimize such code well.
    void specializeArrayParameters(
        BackEndCompileRequest* compileRequest,
        TargetRequest* targetRequest,
        IRModule* module);
}
back to top