GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - niepp/astc_encoder: real time ASTC texture compression by computer shader

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
textures
textures
 
 
ASTC_Encode.hlsl
ASTC_Encode.hlsl
 
 
ASTC_IntegerSequenceEncoding.hlsl
ASTC_IntegerSequenceEncoding.hlsl
 
 
ASTC_Table.hlsl
ASTC_Table.hlsl
 
 
LICENSE
LICENSE
 
 
License.txt
License.txt
 
 
README.md
README.md
 
 
astc_cs_enc.sln
astc_cs_enc.sln
 
 
astc_cs_enc.vcxproj
astc_cs_enc.vcxproj
 
 
astc_encode.h
astc_encode.h
 
 
astc_save.h
astc_save.h
 
 
main.cpp
main.cpp
 
 
stb_image.h
stb_image.h
 
 

Repository files navigation

About

real time ASTC texture compression by computer shader

用d3d compute shader实时压缩astc纹理,实现的是ASTC的一个子集。

Features

  • texture compress in realtime
  • astc4x4
  • astc6x6
  • alpha channel
  • normal map
  • compress in linear or srgb space

Dependencies

  • d3d11

  • stb_image.h - for image loading

Release

astc_encoder v1.0

Usage

astc_cs_enc.exe input_texture option_args

command parameter explanation
-4x4 use format ASTC4x4,or ASTC6x6
-alpha does have alpha channel
-norm whether or not normal map
-srgb whether or not encode in linear color space

example

astc_cs_enc.exe ./textures/leaf.png -alpha -4x4 -srgb

see more https://niepp.github.io/2021/12/18/Compute-ASTC.html

About

real time ASTC texture compression by computer shader

Topics

astccomputeshadergpu-texture-compressiontexture-compression

Resources

Readme
Activity

Stars

143 stars

Watchers

1 watching

Forks

25 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.