Skip to content

Add new numeric properties to ID2D1Shader - #581

Merged
Sergio0694 merged 4 commits into
mainfrom
dev/additional-numeric-properties
Sep 30, 2023
Merged

Sergio0694 merged 4 commits into
mainfrom
dev/additional-numeric-properties

Conversation

@Sergio0694

@Sergio0694 Sergio0694 commented Sep 30, 2023 •

Copy link
Copy Markdown
Owner

Description

This PR adds two new numeric properties to ID2D1Shader and exposes them in D2D1PixelShader:

API breakdown

namespace ComputeSharp.D2D1.Interop
{
    public static class D2D1PixelShader
    {
        public static int GetResourceTextureCount<T>()
            where T : unmanaged, ID2D1PixelShader;
    }
}

namespace ComputeSharp.D2D1.__Internals
{
    public interface ID2D1Shader
    {
        int ConstantBufferSize { get; }
        int ResourceTextureCount { get; }
    }
}

@Sergio0694 Sergio0694 added optimization 🚀 Performance improvement to existing APIs feature 🎉 A brand new feature for ComputeSharp breaking change 💣 A change that is either binary or source breaking labels Sep 30, 2023
@Sergio0694
Sergio0694 merged commit 2dcde87 into main Sep 30, 2023
@Sergio0694
Sergio0694 deleted the dev/additional-numeric-properties branch September 30, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change 💣 A change that is either binary or source breaking feature 🎉 A brand new feature for ComputeSharp optimization 🚀 Performance improvement to existing APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant