diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-04-24 23:42:42 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-04-24 23:42:42 +0200 |
| commit | 7e7de8ea5e482ce83c62223b8669e61d78630076 (patch) | |
| tree | ea25b1698443c4016651a68e6fced64566052efb /samples/deferred/mainWithDebugDrawer.cs | |
| parent | 62c9791ba7257b38507dea829e8e08a7d1926071 (diff) | |
update deferred sample with new pbr shader
Diffstat (limited to 'samples/deferred/mainWithDebugDrawer.cs')
| -rw-r--r-- | samples/deferred/mainWithDebugDrawer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/deferred/mainWithDebugDrawer.cs b/samples/deferred/mainWithDebugDrawer.cs index 7611e0d..f95ed0a 100644 --- a/samples/deferred/mainWithDebugDrawer.cs +++ b/samples/deferred/mainWithDebugDrawer.cs @@ -155,7 +155,7 @@ namespace deferredDebug { cfg.Layout = new PipelineLayout (dev, descLayoutMain, descLayoutModelTextures, descLayoutGBuff); cfg.Layout.AddPushConstants ( new VkPushConstantRange (VkShaderStageFlags.Vertex, (uint)Marshal.SizeOf<Matrix4x4> ()), - new VkPushConstantRange (VkShaderStageFlags.Fragment, (uint)Marshal.SizeOf<Model.PbrMaterial> (), 64) + new VkPushConstantRange (VkShaderStageFlags.Fragment, sizeof(int), 64) ); cfg.RenderPass = renderPass; cfg.blendAttachments.Add (new VkPipelineColorBlendAttachmentState (false)); |