spirv-reflect-yaml 0.3 → 0.4
raw patch · 3 files changed
+19/−9 lines, 3 filesdep ~basedep ~spirv-enumdep ~spirv-reflect-typesPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, spirv-enum, spirv-reflect-types
API changes (from Hackage documentation)
- Data.SpirV.Reflect.Yaml: [$sel:message:YamlError] :: YamlError -> String
- Data.SpirV.Reflect.Yaml: [$sel:position:YamlError] :: YamlError -> Pos
- Data.SpirV.Reflect.Yaml: [$sel:source:YamlError] :: YamlError -> FilePath
+ Data.SpirV.Reflect.Yaml: [message] :: YamlError -> String
+ Data.SpirV.Reflect.Yaml: [position] :: YamlError -> Pos
+ Data.SpirV.Reflect.Yaml: [source] :: YamlError -> FilePath
Files
ChangeLog.md view
@@ -1,5 +1,13 @@ # Changelog for spirv-reflect-yaml +## [0.4] - 2026-06-23++* **Breaking:** minimum GHC rasied to 9.2 (`base >= 4.16`).+* Updated to `vulkan-sdk-1.4.350` and `spirv-reflect-types-0.4`.+* Parse `type_description` and `default_value` for specialization constants.++[0.4]: https://gitlab.com/dpwiz/spirv-reflect/-/tree/v0.4-yaml+ ## [0.3] - 2024-07-07 * Update types and parser to `vulkan-sdk-1.3.283.0`.
lib/Data/SpirV/Reflect/Yaml/Parsers.hs view
@@ -162,9 +162,11 @@ specializationConstantP :: NodeParser SpecializationConstant specializationConstantP = YAML.withMap "SpecializationConstant" \m -> do- spirv_id <- m .? "spirv_id"- constant_id <- m .: "constant_id"- name <- m .? "name"+ spirv_id <- m .? "spirv_id"+ constant_id <- m .: "constant_id"+ name <- m .? "name"+ type_description <- m .? "type_description" >>= traverse typeDescriptionP+ default_value <- m .? "default_value" `seqOf` YAML.withInt "default_value_word" (pure . fromInteger) pure SpecializationConstant.SpecializationConstant{..} --------------
spirv-reflect-yaml.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.36.0.+-- This file has been generated from package.yaml by hpack version 0.39.1. -- -- see: https://github.com/sol/hpack name: spirv-reflect-yaml-version: 0.3+version: 0.4 synopsis: YAML loader for spirv-reflect tool. category: Graphics author: IC Rainbow@@ -50,10 +50,10 @@ TypeApplications build-depends: HsYAML- , base >=4.7 && <5+ , base >=4.16 && <5 , bytestring- , spirv-enum ==0.1.*- , spirv-reflect-types ==0.3.*+ , spirv-enum >=0.1 && <2+ , spirv-reflect-types ==0.4.* , text , vector default-language: Haskell2010@@ -81,7 +81,7 @@ StrictData TypeApplications build-depends:- base >=4.7 && <5+ base >=4.16 && <5 , directory , filepath , spirv-reflect-yaml