示例#1
0
        public HitProgram(string ahsExport, string chsExport, string name)
        {
            HitGroupDescription desc = new HitGroupDescription();

            desc.AnyHitShaderImport     = ahsExport;
            desc.ClosestHitShaderImport = chsExport;
            desc.HitGroupExport         = name;

            subObject = new StateSubObject(desc);
        }
        public HitProgram(string ahsExport, string chsExport, string name)
        {
            ExportName = name;
            Desc       = new HitGroupDescription();
            Desc.IntersectionShaderImport = null;
            Desc.Type                   = HitGroupType.Triangles;
            Desc.HitGroupExport         = name;
            Desc.AnyHitShaderImport     = ahsExport;
            Desc.ClosestHitShaderImport = chsExport;

            subObject = new StateSubObject(Desc);
        }