Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Shader | |
|
create :: (MonadIO io, HasVulkan ctx, StageInfo t) => ctx -> t (Maybe ByteString) -> Maybe SpecializationInfo -> io Shader Source #
withSpecialization :: (Specialization spec, MonadUnliftIO m) => spec -> (Maybe SpecializationInfo -> m a) -> m a Source #
class Specialization a where Source #
specializationData :: a -> [Word32] Source #
Instances
class SpecializationConst a where Source #
packConstData :: a -> Word32 Source #
Instances
SpecializationConst Int32 Source # | |
Defined in Engine.Vulkan.Shader packConstData :: Int32 -> Word32 Source # | |
SpecializationConst Word32 Source # | |
Defined in Engine.Vulkan.Shader packConstData :: Word32 -> Word32 Source # | |
SpecializationConst Bool Source # | |
Defined in Engine.Vulkan.Shader packConstData :: Bool -> Word32 Source # | |
SpecializationConst Float Source # | |
Defined in Engine.Vulkan.Shader packConstData :: Float -> Word32 Source # |