File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11module Web.GPU.GPUBlendComponent where
22
3+ import Data.Newtype (class Newtype )
34import Web.GPU.GPUBlendFactor (GPUBlendFactor )
45import Web.GPU.GPUBlendOperation (GPUBlendOperation )
56import Web.GPU.Internal.RequiredAndOptional (RequiredAndOptional )
@@ -10,4 +11,6 @@ newtype GPUBlendComponent = GPUBlendComponent
1011 , srcFactor :: GPUBlendFactor
1112 , dstFactor :: GPUBlendFactor
1213 )
13- )
14+ )
15+
16+ derive instance Newtype GPUBlendComponent _
Original file line number Diff line number Diff line change 11module Web.GPU.GPURenderPassDescriptor where
22
3+ import Data.Newtype (class Newtype )
34import Web.GPU.GPURenderPassColorAttachment (GPURenderPassColorAttachment )
45import Web.GPU.GPURenderPassDepthStencilAttachment (GPURenderPassDepthStencilAttachment )
56import Web.GPU.GPURenderPassTimestampWrite (GPURenderPassTimestampWrite )
@@ -16,4 +17,6 @@ newtype GPURenderPassDescriptor = GPURenderPassDescriptor
1617 , maxDrawCount :: GPUSize64
1718 , label :: String
1819 )
19- )
20+ )
21+
22+ derive instance Newtype GPURenderPassDescriptor _
You can’t perform that action at this time.
0 commit comments