feat

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreExtensionsXPath added in v0.4.0

func CoreExtensionsXPath(apiName string) string

CoreExtensionsXPath selects the extensions that are not specific to a platform and are supported by the named API (the supported attribute is a comma-separated list, for example supported="vulkan,vulkansc").

func PlatformExtensionsXPath added in v0.4.0

func PlatformExtensionsXPath(platformName string) string

PlatformExtensionsXPath selects the extensions for a platform: those with the platform attribute and, for registry files that predate it, those guarded by the platform's protect macro.

Types

type Extension

type Extension struct {
	*Feature
	// contains filtered or unexported fields
}

func ReadExtensionFromXML

func ReadExtensionFromXML(extNode *xmlquery.Node, tr def.TypeRegistry, vr def.ValueRegistry) *Extension

func (*Extension) Name

func (e *Extension) Name() string

func (*Extension) PlatformName

func (e *Extension) PlatformName() string

type Feature

type Feature struct {
	ResolvedTypes  def.TypeRegistry
	ResolvedValues map[string]def.ValueRegistry
	// contains filtered or unexported fields
}

func NewFeature

func NewFeature() *Feature

func ReadFeatureFromXML

func ReadFeatureFromXML(featureNode *xmlquery.Node, tr def.TypeRegistry, vr def.ValueRegistry) *Feature

func (*Feature) FilterByCategory

func (f *Feature) FilterByCategory() map[def.TypeCategory]*Feature

func (*Feature) MergeIncludeSet

func (f *Feature) MergeIncludeSet(is *def.IncludeSet)

func (*Feature) MergeWith

func (f *Feature) MergeWith(g *Feature)

func (*Feature) Name

func (f *Feature) Name() string

func (*Feature) Resolve

func (f *Feature) Resolve(tr def.TypeRegistry, vr def.ValueRegistry)

type Platform

type Platform struct {
	GoBuildTag string
	GoImports  []string
	// contains filtered or unexported fields
}

func NewGeneralPlatform

func NewGeneralPlatform() *Platform

func NewOrUpdatePlatformFromJSON

func NewOrUpdatePlatformFromJSON(key string, exception gjson.Result, existing *Platform) *Platform

func NewPlatformFromXML

func NewPlatformFromXML(plNode *xmlquery.Node) *Platform

func (*Platform) Extensions

func (p *Platform) Extensions() map[string]*Extension

func (*Platform) GeneratePlatformFeatures

func (p *Platform) GeneratePlatformFeatures() *Feature

func (*Platform) IncludeExtension

func (p *Platform) IncludeExtension(e *Extension)

func (*Platform) Name

func (p *Platform) Name() string

type PlatformRegistry

type PlatformRegistry map[string]*Platform

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址