Skip to content

Add getResourceResultType to SLTypeLayout#22

Merged
shivaduke28 merged 1 commit into
mainfrom
issue-21-resource-element-type
Apr 5, 2026
Merged

Add getResourceResultType to SLTypeLayout#22
shivaduke28 merged 1 commit into
mainfrom
issue-21-resource-element-type

Conversation

@shivaduke28
Copy link
Copy Markdown
Owner

Summary

  • Wrap TypeLayoutReflection::getResourceResultType() from Slang C++ API as SLTypeLayout.getResourceResultType() returning SLTypeReflection
  • Add tests for RWTexture2D<float4>, RWTexture2D<float>, RWTexture2D<half4> verifying kind, scalar type, and element count

Test plan

  • All 17 tests pass including the new testResourceResultType

Closes #21

🤖 Generated with Claude Code

…eflection

Closes #21

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shivaduke28 shivaduke28 merged commit b5c414c into main Apr 5, 2026
1 check passed
@shivaduke28 shivaduke28 deleted the issue-21-resource-element-type branch April 5, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose resource element type from SLTypeLayout for RWTexture2D reflection

1 participant