public VideoProfilesKHR
        (
            StructureType?sType        = StructureType.VideoProfilesKhr,
            void *pNext                = null,
            uint?profileCount          = null,
            VideoProfileKHR *pProfiles = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (profileCount is not null)
            {
                ProfileCount = profileCount.Value;
            }

            if (pProfiles is not null)
            {
                PProfiles = pProfiles;
            }
        }
        public VideoSessionCreateInfoKHR
        (
            StructureType?sType                  = StructureType.VideoSessionCreateInfoKhr,
            void *pNext                          = null,
            uint?queueFamilyIndex                = null,
            VideoSessionCreateFlagsKHR?flags     = null,
            VideoProfileKHR *pVideoProfile       = null,
            Format?pictureFormat                 = null,
            Extent2D?maxCodedExtent              = null,
            Format?referencePicturesFormat       = null,
            uint?maxReferencePicturesSlotsCount  = null,
            uint?maxReferencePicturesActiveCount = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (queueFamilyIndex is not null)
            {
                QueueFamilyIndex = queueFamilyIndex.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (pVideoProfile is not null)
            {
                PVideoProfile = pVideoProfile;
            }

            if (pictureFormat is not null)
            {
                PictureFormat = pictureFormat.Value;
            }

            if (maxCodedExtent is not null)
            {
                MaxCodedExtent = maxCodedExtent.Value;
            }

            if (referencePicturesFormat is not null)
            {
                ReferencePicturesFormat = referencePicturesFormat.Value;
            }

            if (maxReferencePicturesSlotsCount is not null)
            {
                MaxReferencePicturesSlotsCount = maxReferencePicturesSlotsCount.Value;
            }

            if (maxReferencePicturesActiveCount is not null)
            {
                MaxReferencePicturesActiveCount = maxReferencePicturesActiveCount.Value;
            }
        }
Exemplo n.º 3
0
 public static unsafe Result GetPhysicalDeviceVideoCapabilities(this KhrVideoQueue thisApi, [Count(Count = 0)] PhysicalDevice physicalDevice, [Count(Count = 0), Flow(FlowDirection.In)] VideoProfileKHR *pVideoProfile, [Count(Count = 0), Flow(FlowDirection.Out)] Span <VideoCapabilitiesKHR> pCapabilities)
 {
     // SpanOverloader
     return(thisApi.GetPhysicalDeviceVideoCapabilities(physicalDevice, pVideoProfile, out pCapabilities.GetPinnableReference()));
 }